mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
DesktopWidgets: fix index warning
This commit is contained in:
@@ -303,6 +303,7 @@ Variants {
|
||||
active: (model.id in root.registeredWidgets) && (root.pluginReloadCounter >= 0)
|
||||
|
||||
required property var model
|
||||
required property int index
|
||||
property int widgetIndex: index
|
||||
|
||||
sourceComponent: {
|
||||
@@ -316,7 +317,9 @@ Variants {
|
||||
if (item) {
|
||||
item.screen = window.screen;
|
||||
item.parent = widgetsContainer;
|
||||
item.widgetData = Qt.binding(function() { return widgetLoader.model; });
|
||||
item.widgetData = Qt.binding(function () {
|
||||
return widgetLoader.model;
|
||||
});
|
||||
item.widgetIndex = widgetIndex;
|
||||
|
||||
// Inject plugin API for plugin widgets
|
||||
|
||||
Reference in New Issue
Block a user