Changeset View
Changeset View
Standalone View
Standalone View
applets/systemtray/package/contents/ui/ConfigEntries.qml
Context not available. | |||||
94 | "index": i, | 94 | "index": i, | ||
---|---|---|---|---|---|
95 | "taskId": item.Id, | 95 | "taskId": item.Id, | ||
96 | "name": item.Title, | 96 | "name": item.Title, | ||
97 | "iconName": item.IconName, | 97 | "iconName": item.ToolTipIcon !== "" ? item.ToolTipIcon : item.Icon ? item.Icon : item.IconName, | ||
98 | "icon": item.Icon | 98 | "icon": item.Icon | ||
99 | }); | 99 | }); | ||
100 | } | 100 | } | ||
Context not available. | |||||
248 | visible: modelData.hasOwnProperty("shortcut") | 248 | visible: modelData.hasOwnProperty("shortcut") | ||
249 | onKeySequenceChanged: { | 249 | onKeySequenceChanged: { | ||
250 | if (keySequence !== modelData.shortcut) { | 250 | if (keySequence !== modelData.shortcut) { | ||
251 | // both SNIs and plasmoids are listed in the same TableView | 251 | modelData.applet.globalShortcut = keySequence | ||
252 | // but they come from two separate models, so we need to subtract | | |||
253 | // the SNI model count to get the actual plasmoid index | | |||
254 | var index = modelData.index - statusNotifierModel.count | | |||
255 | plasmoid.applets[index].globalShortcut = keySequence | | |||
256 | 252 | | |||
257 | iconsPage.configurationChanged() | 253 | iconsPage.configurationChanged() | ||
258 | } | 254 | } | ||
Context not available. |