Fix: Weather service now uses the proper units on startup (#975)

* Fix: Weather service now uses the proper units on startup

* Fix: Screen recorder now creates the needed directory
This commit is contained in:
Jas Singh
2025-06-01 18:56:38 -07:00
committed by GitHub
parent 9698f9be7c
commit 5c2bc9bc6d
3 changed files with 7 additions and 34 deletions

View File

@@ -1,14 +1,10 @@
import { Gtk } from 'astal/gtk3';
import { bind } from 'astal';
import WeatherService from 'src/services/weather';
import options from 'src/configuration';
import { toTitleCase } from 'src/lib/string/formatters';
const { unit } = options.menus.clock.weather;
const weatherService = WeatherService.getInstance();
unit.subscribe((unitType) => (weatherService.unit = unitType));
const WeatherStatus = (): JSX.Element => {
return (
<box halign={Gtk.Align.CENTER}>