forked from Shinonome/dots-hyprland
chor(Weather): rename show to enable
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user