diff --git a/applets/analog-clock/contents/config/main.xml b/applets/analog-clock/contents/config/main.xml
--- a/applets/analog-clock/contents/config/main.xml
+++ b/applets/analog-clock/contents/config/main.xml
@@ -6,6 +6,9 @@
+
+ true
+
false
diff --git a/applets/analog-clock/contents/ui/analogclock.qml b/applets/analog-clock/contents/ui/analogclock.qml
--- a/applets/analog-clock/contents/ui/analogclock.qml
+++ b/applets/analog-clock/contents/ui/analogclock.qml
@@ -35,6 +35,7 @@
property int hours
property int minutes
property int seconds
+ property bool showMinutesHand: plasmoid.configuration.showMinuteHand
property bool showSecondsHand: plasmoid.configuration.showSecondHand
property bool showTimezone: plasmoid.configuration.showTimezoneString
property int tzOffset
@@ -167,12 +168,14 @@
horizontalRotationOffset: clock.horizontalShadowOffset
verticalRotationOffset: clock.verticalShadowOffset
rotation: 180 + minutes * 6
+ visible: showMinutesHand
svgScale: clock.svgScale
}
Hand {
elementId: "MinuteHand"
rotationCenterHintId: "hint-minutehand-rotation-center-offset"
rotation: 180 + minutes * 6
+ visible: showMinutesHand
svgScale: clock.svgScale
}
diff --git a/applets/analog-clock/contents/ui/configGeneral.qml b/applets/analog-clock/contents/ui/configGeneral.qml
--- a/applets/analog-clock/contents/ui/configGeneral.qml
+++ b/applets/analog-clock/contents/ui/configGeneral.qml
@@ -22,6 +22,7 @@
Kirigami.FormLayout {
+ property alias cfg_showMinuteHand: showMinuteHandCheckBox.checked
property alias cfg_showSecondHand: showSecondHandCheckBox.checked
property alias cfg_showTimezoneString: showTimezoneCheckBox.checked
@@ -30,10 +31,14 @@
right: parent.right
}
+ CheckBox {
+ id: showMinuteHandCheckBox
+ text: i18n("Show minutes hand")
+ Kirigami.FormData.label: i18n("General:")
+ }
CheckBox {
id: showSecondHandCheckBox
text: i18n("Show seconds hand")
- Kirigami.FormData.label: i18n("General:")
}
CheckBox {
id: showTimezoneCheckBox