Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ConfigGeneral.qml
Context not available. | |||||
91 | model: plasmoid.nativeInterface.availablePlasmoids | 91 | model: plasmoid.nativeInterface.availablePlasmoids | ||
---|---|---|---|---|---|
92 | delegate: QtControls.CheckBox { | 92 | delegate: QtControls.CheckBox { | ||
93 | QtLayouts.Layout.minimumWidth: childrenRect.width | 93 | QtLayouts.Layout.minimumWidth: childrenRect.width | ||
94 | checked: cfg_extraItems.indexOf(plugin) != -1 | 94 | checked: cfg_extraItems.indexOf(itemId) != -1 | ||
95 | implicitWidth: itemLayout.width + itemLayout.x | 95 | implicitWidth: itemLayout.width + itemLayout.x | ||
96 | onCheckedChanged: { | 96 | onCheckedChanged: { | ||
97 | var index = cfg_extraItems.indexOf(plugin); | 97 | var index = cfg_extraItems.indexOf(itemId); | ||
98 | if (checked) { | 98 | if (checked) { | ||
99 | if (index === -1) { | 99 | if (index === -1) { | ||
100 | cfg_extraItems.push(plugin); | 100 | cfg_extraItems.push(itemId); | ||
101 | } | 101 | } | ||
102 | } else { | 102 | } else { | ||
103 | if (index > -1) { | 103 | if (index > -1) { | ||
Context not available. |