forked from Shinonome/dots-hyprland
use camelCase and unload instead of hiding
This commit is contained in:
@@ -215,7 +215,9 @@ Variants {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// The clock
|
// The clock
|
||||||
Item {
|
Loader {
|
||||||
|
active: Config.options.background.showClock
|
||||||
|
sourceComponent: Item {
|
||||||
id: clock
|
id: clock
|
||||||
visible: Config.options.background.show_clock
|
visible: Config.options.background.show_clock
|
||||||
anchors {
|
anchors {
|
||||||
@@ -321,3 +323,4 @@ Variants {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ Singleton {
|
|||||||
property bool fixedClockPosition: false
|
property bool fixedClockPosition: false
|
||||||
property real clockX: -500
|
property real clockX: -500
|
||||||
property real clockY: -500
|
property real clockY: -500
|
||||||
property bool show_clock: true
|
property bool showClock: true
|
||||||
property string wallpaperPath: ""
|
property string wallpaperPath: ""
|
||||||
property string thumbnailPath: ""
|
property string thumbnailPath: ""
|
||||||
property JsonObject parallax: JsonObject {
|
property JsonObject parallax: JsonObject {
|
||||||
|
|||||||
@@ -630,9 +630,9 @@ ContentPage {
|
|||||||
|
|
||||||
ConfigSwitch {
|
ConfigSwitch {
|
||||||
text: Translation.tr("Show clock")
|
text: Translation.tr("Show clock")
|
||||||
checked: Config.options.background.show_clock
|
checked: Config.options.background.showClock
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
Config.options.background.show_clock = checked;
|
Config.options.background.showClock = checked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user