diff --git a/shell/plugins/bar/Bar.qml b/shell/plugins/bar/Bar.qml index 251536c4..be9fece4 100644 --- a/shell/plugins/bar/Bar.qml +++ b/shell/plugins/bar/Bar.qml @@ -229,7 +229,6 @@ Item { function pluginBarApiFor(pluginId, moduleName, registered) { var key = String(pluginId || "") if (!key) return null - if (pluginBarApis[key]) return pluginBarApis[key] var pluginShell = null if (registered && root.shell && typeof root.shell.pluginShellForId === "function") { @@ -243,6 +242,11 @@ Item { pluginShell = root.shell.pluginShellForBarEntry(key, moduleName) } + if (pluginBarApis[key]) { + pluginBarApis[key].shell = pluginShell + return pluginBarApis[key] + } + var api = pluginBarApiComponent.createObject(null, { pluginId: key, moduleName: String(moduleName || ""),