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