From 631b5c2a1cd8af00458e771f3eb5c6841469bbb5 Mon Sep 17 00:00:00 2001 From: reionwong Date: Sun, 7 Nov 2021 08:26:30 +0800 Subject: [PATCH] Take effect immediately after setting the time format --- qml/main.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qml/main.qml b/qml/main.qml index 0c6862f..9ed3311 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -39,6 +39,10 @@ Item { property var timeFormat: StatusBar.twentyFourTime ? "HH:mm" : "h:mm ap" + onTimeFormatChanged: { + timeTimer.restart() + } + Rectangle { id: background anchors.fill: parent @@ -450,6 +454,7 @@ Item { color: rootItem.textColor Timer { + id: timeTimer interval: 1000 repeat: true running: true