|
|
|
@ -181,14 +181,14 @@ ColumnLayout { |
|
|
|
return 0 |
|
|
|
return 0 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
property var currentValue: model[currentIndex].value |
|
|
|
property var myCurrentValue: model[currentIndex].value |
|
|
|
|
|
|
|
|
|
|
|
onActivated: { |
|
|
|
onActivated: { |
|
|
|
var shownIndex = cfg_shownItems.indexOf(itemId) |
|
|
|
var shownIndex = cfg_shownItems.indexOf(itemId) |
|
|
|
var hiddenIndex = cfg_hiddenItems.indexOf(itemId) |
|
|
|
var hiddenIndex = cfg_hiddenItems.indexOf(itemId) |
|
|
|
var extraIndex = cfg_extraItems.indexOf(itemId) |
|
|
|
var extraIndex = cfg_extraItems.indexOf(itemId) |
|
|
|
|
|
|
|
|
|
|
|
switch (currentValue) { |
|
|
|
switch (myCurrentValue) { |
|
|
|
case "auto": |
|
|
|
case "auto": |
|
|
|
if (shownIndex > -1) { |
|
|
|
if (shownIndex > -1) { |
|
|
|
cfg_shownItems.splice(shownIndex, 1) |
|
|
|
cfg_shownItems.splice(shownIndex, 1) |
|
|
|
@ -259,7 +259,7 @@ ColumnLayout { |
|
|
|
Component.onCompleted: itemsList.keySequenceColumnWidth = Math.max(implicitWidth, itemsList.keySequenceColumnWidth) |
|
|
|
Component.onCompleted: itemsList.keySequenceColumnWidth = Math.max(implicitWidth, itemsList.keySequenceColumnWidth) |
|
|
|
|
|
|
|
|
|
|
|
visible: isPlasmoid |
|
|
|
visible: isPlasmoid |
|
|
|
enabled: visibilityComboBox.currentValue !== "disabled" |
|
|
|
enabled: visibilityComboBox.myCurrentValue !== "disabled" |
|
|
|
keySequence: model.applet ? model.applet.globalShortcut : "" |
|
|
|
keySequence: model.applet ? model.applet.globalShortcut : "" |
|
|
|
onKeySequenceChanged: { |
|
|
|
onKeySequenceChanged: { |
|
|
|
if (model.applet && keySequence !== model.applet.globalShortcut) { |
|
|
|
if (model.applet && keySequence !== model.applet.globalShortcut) { |
|
|
|
|