use camelCase and unload instead of hiding

This commit is contained in:
hoovad
2025-08-27 05:30:15 +02:00
parent 5cd5a9d7e4
commit 2b54f64c8c
3 changed files with 105 additions and 102 deletions
@@ -215,7 +215,9 @@ Variants {
}
// The clock
Item {
Loader {
active: Config.options.background.showClock
sourceComponent: Item {
id: clock
visible: Config.options.background.show_clock
anchors {
@@ -321,3 +323,4 @@ Variants {
}
}
}
}
@@ -119,7 +119,7 @@ Singleton {
property bool fixedClockPosition: false
property real clockX: -500
property real clockY: -500
property bool show_clock: true
property bool showClock: true
property string wallpaperPath: ""
property string thumbnailPath: ""
property JsonObject parallax: JsonObject {
@@ -630,9 +630,9 @@ ContentPage {
ConfigSwitch {
text: Translation.tr("Show clock")
checked: Config.options.background.show_clock
checked: Config.options.background.showClock
onCheckedChanged: {
Config.options.background.show_clock = checked;
Config.options.background.showClock = checked;
}
}
}