[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasma-workspace] applets/digital-clock/package/contents/ui: [digital-clock] Move unrelated code to
From:       Martin Klapetek <mklapetek () kde ! org>
Date:       2015-08-05 12:25:37
Message-ID: E1ZMxlJ-0000gZ-QJ () scm ! kde ! org
[Download RAW message or body]

Git commit fa01d9d8a6d10df7c40f2f48bb85516c93a7ed1c by Martin Klapetek.
Committed on 05/08/2015 at 12:25.
Pushed by mklapetek into branch 'master'.

[digital-clock] Move unrelated code to its own slot

M  +9    -6    applets/digital-clock/package/contents/ui/configAppearance.qml

http://commits.kde.org/plasma-workspace/fa01d9d8a6d10df7c40f2f48bb85516c93a7ed1c

diff --git a/applets/digital-clock/package/contents/ui/configAppearance.qml \
b/applets/digital-clock/package/contents/ui/configAppearance.qml index \
                37df4f4..5508706 100644
--- a/applets/digital-clock/package/contents/ui/configAppearance.qml
+++ b/applets/digital-clock/package/contents/ui/configAppearance.qml
@@ -90,6 +90,7 @@ Item {
                     text: i18n("Show local time zone")
                 }
 
+
                 QtControls.Label {
                     text: i18n("Display time zone as:")
                 }
@@ -146,16 +147,18 @@ Item {
                                     dateFormat.currentIndex = i;
                                 }
                             }
-
-                            if (plasmoid.configuration.displayTimezoneAsCode) {
-                                timezoneCodeRadio.checked = true;
-                            } else {
-                                timezoneCityRadio.checked = true;
-                            }
                         }
                     }
                 }
             }
         }
     }
+
+    Component.onCompleted: {
+        if (plasmoid.configuration.displayTimezoneAsCode) {
+            timezoneCodeRadio.checked = true;
+        } else {
+            timezoneCityRadio.checked = true;
+        }
+    }
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic