Commit 32d34280 authored by Ivan Čukić's avatar Ivan Čukić 👁
Browse files

Fix the configuration dialogue for the applet in the vertical panel

The icon configuration is disabled for the vertical panel instead
of the title option to be disabled. This patch flips these two --
the icon can be configured always, the title only if it is not in
a vertical panel.
parent cf137a2f
......@@ -30,7 +30,6 @@ Kirigami.FormLayout {
property alias cfg_showActivityIcon: radioCurrentActivityIcon.checked
property alias cfg_showActivityName: checkShowActivityName.checked
property bool disableSetting: plasmoid.formFactor === PlasmaCore.Types.Vertical
Item { Kirigami.FormData.isSection: true }
......@@ -39,13 +38,11 @@ Kirigami.FormLayout {
Kirigami.FormData.label: i18n("Icon:")
enabled: !disableSetting
text: i18n("Show the current activity icon")
RadioButton {
id: radioGenericActivityIcon
enabled: !disableSetting
checked: !radioCurrentActivityIcon.checked
text: i18n("Show the generic activity icon")
......@@ -55,6 +52,8 @@ Kirigami.FormLayout {
CheckBox {
id: checkShowActivityName
enabled: plasmoid.formFactor !== PlasmaCore.Types.Vertical
Kirigami.FormData.label: i18n("Title:")
text: i18n("Show the current activity name")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment