Refresh cached plugin bar shell facades

Co-Authored-By: GPT-5.6 Sol <noreply@openai.com>
This commit is contained in:
Ryan HughesandGPT-5.6 Sol committed 2026-09-07 02:28:12 -04:00
1 parent 23aeb4c670
commit 572a34d3e3
1 file changed
+5 -1
+5 -1
View File
@@ -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 || ""),