Refresh cached plugin bar shell facades
Co-Authored-By: GPT-5.6 Sol <noreply@openai.com>
This commit is contained in:
1 parent
23aeb4c670
commit
572a34d3e3
1 file changed
+5
-1
@@ -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 || ""),
|
||||
|
||||
Reference in new issue
Block a user