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:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user