Fix systemtray configuration

Summary: The property currentValue is conflicting making the qml file not run.

Reviewers: #plasma_workspaces, davidedmundson

Reviewed By: #plasma_workspaces, davidedmundson

Subscribers: kmaterka, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26923
wilder-portage-prov
Allan Sandfeld Jensen 6 years ago
parent 9ce694094f
commit ce69fc4ea9
  1. 6
      applets/systemtray/package/contents/ui/ConfigEntries.qml

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

Loading…
Cancel
Save