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 // Weather
Loader { Loader {
id: weatherLoader id: weatherLoader
active: Config.options.bar.weather.show active: Config.options.bar.weather.enable
anchors.left: middleSection.right anchors.left: middleSection.right
anchors.margins: 10 anchors.margins: 10
sourceComponent: BarGroup { sourceComponent: BarGroup {
+2 -2
View File
@@ -123,11 +123,11 @@ Singleton {
property int showNumberDelay: 300 // milliseconds property int showNumberDelay: 300 // milliseconds
} }
property JsonObject weather: JsonObject { property JsonObject weather: JsonObject {
property bool show: true property bool enable: true
// gps based location // gps based location
property bool enableGPS: true property bool enableGPS: true
// use if 'enableGPS' is false // use if 'enableGPS' is false
property string city: "Istanbul" property string city: ""
// use uscs units // use uscs units
// by default use metric (SI) units // by default use metric (SI) units
property bool useUSCS: false property bool useUSCS: false
@@ -141,10 +141,10 @@ ContentPage {
ContentSection { ContentSection {
title: "Weather" title: "Weather"
ConfigSwitch { ConfigSwitch {
text: "Show" text: "enable"
checked: Config.options.bar.weather.show checked: Config.options.bar.weather.enable
onCheckedChanged: { onCheckedChanged: {
Config.options.bar.weather.show = checked; Config.options.bar.weather.enable = checked;
} }
} }
} }