diff --git a/.config/quickshell/modules/bar/Bar.qml b/.config/quickshell/modules/bar/Bar.qml index b88a89476..ce4a614ec 100644 --- a/.config/quickshell/modules/bar/Bar.qml +++ b/.config/quickshell/modules/bar/Bar.qml @@ -314,7 +314,7 @@ Scope { // Weather Loader { id: weatherLoader - active: Config.options.bar.weather.show + active: Config.options.bar.weather.enable anchors.left: middleSection.right anchors.margins: 10 sourceComponent: BarGroup { diff --git a/.config/quickshell/modules/common/Config.qml b/.config/quickshell/modules/common/Config.qml index 5e7b9bb3f..6df375828 100644 --- a/.config/quickshell/modules/common/Config.qml +++ b/.config/quickshell/modules/common/Config.qml @@ -123,11 +123,11 @@ Singleton { property int showNumberDelay: 300 // milliseconds } property JsonObject weather: JsonObject { - property bool show: true + property bool enable: true // gps based location property bool enableGPS: true // use if 'enableGPS' is false - property string city: "Istanbul" + property string city: "" // use uscs units // by default use metric (SI) units property bool useUSCS: false diff --git a/.config/quickshell/modules/settings/ServicesConfig.qml b/.config/quickshell/modules/settings/ServicesConfig.qml index 21064ac91..97d80a18a 100644 --- a/.config/quickshell/modules/settings/ServicesConfig.qml +++ b/.config/quickshell/modules/settings/ServicesConfig.qml @@ -141,10 +141,10 @@ ContentPage { ContentSection { title: "Weather" ConfigSwitch { - text: "Show" - checked: Config.options.bar.weather.show + text: "enable" + checked: Config.options.bar.weather.enable onCheckedChanged: { - Config.options.bar.weather.show = checked; + Config.options.bar.weather.enable = checked; } } }