forked from Shinonome/dots-hyprland
use camelCase and unload instead of hiding
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user