clock: make desktop clock not use precision seconds always

This commit is contained in:
bbedward committed 2025-12-17 21:00:04 -05:00
1 parent f2b9dc8988
commit 145d2636dd
1 file changed
+3 -1
@@ -78,9 +78,11 @@ Item {
readonly property color subtleTextColor: Theme.onSurfaceVariant
readonly property color backgroundColor: Theme.withAlpha(Theme.surface, root.transparency)
readonly property bool needsSeconds: clockStyle === "analog" ? SettingsData.desktopClockShowAnalogSeconds : SettingsData.showSeconds
SystemClock {
id: systemClock
precision: SystemClock.Seconds
precision: root.needsSeconds ? SystemClock.Seconds : SystemClock.Minutes
}
Rectangle {