[plasma/plasma-workspace] applets/digital-clock: applets/digital-clock: Fix label not adjusting in size when showSeconds is changed

Nate Graham <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 28a42b4d5f9d2ce6ac11d4a3cd03b98216f26992 by Nate Graham, on behalf of Hunter White.
Committed on 22/07/2026 at 03:11.
Pushed by ngraham into branch 'master'.

applets/digital-clock: Fix label not adjusting in size when showSeconds is changed

Label sizing did not adjust to appropriate width when showSeconds was changed.
The solution was to just call main.setupLabels() when showSeconds is changed.

BUG: 523010
FIXED-IN: 6.6.7

M  +4    -0    applets/digital-clock/DigitalClock.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/28a42b4d5f9d2ce6ac11d4a3cd03b98216f26992

diff --git a/applets/digital-clock/DigitalClock.qml b/applets/digital-clock/DigitalClock.qml
index 04fa6814cd..5c153cbebc 100644
--- a/applets/digital-clock/DigitalClock.qml
+++ b/applets/digital-clock/DigitalClock.qml
@@ -128,6 +128,10 @@ MouseArea {
         function onUse24hFormatChanged() {
             main.timeFormatCorrection();
         }
+
+        function onShowSecondsChanged() {
+            main.setupLabels();
+        }
     }
 
     function pointToPixel(pointSize: int): int {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.