chor(Weather): rename show to enable

This commit is contained in:
Hasan A. Tekeoğlu
2025-07-01 13:19:24 +03:00
parent c94231365f
commit 50cc371100
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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 {
+2 -2
View File
@@ -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
@@ -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;
}
}
}