make dashboard unload on close

This commit is contained in:
2026-04-22 15:32:52 +02:00
parent 2b83c7784c
commit 47b964d9ce
5 changed files with 37 additions and 39 deletions
+1 -2
View File
@@ -22,8 +22,7 @@ Item {
implicitHeight: content.implicitHeight
implicitWidth: content.implicitWidth || 854 // Hard coded fallback for first open
opacity: 1 - offsetScale
// visible: offsetScale < 1
visible: offsetScale < 1
Loader {
id: content
+4 -4
View File
@@ -60,10 +60,10 @@ RowLayout {
color: root.mainColor
implicitHeight: Math.ceil(root.percentage * parent.height)
Behavior on implicitHeight {
Anim {
}
}
// Behavior on implicitHeight {
// Anim {
// }
// }
}
}
}
+1 -1
View File
@@ -7,7 +7,7 @@ Singleton {
id: root
readonly property date date: clock.date
readonly property string dateStr: format("ddd d MMM - hh:mm:ss")
readonly property string dateStr: format("ddd d MMM - hh:mm")
property alias enabled: clock.enabled
readonly property string hourStr: timeComponents[0] ?? ""
readonly property int hours: clock.hours