Notify installed plugins from the Palette Manager

This commit is contained in:
GogoVega
2025-09-21 21:14:21 +02:00
parent f63b825fdc
commit dc318b5477

View File

@@ -172,9 +172,10 @@ function installModule(module,version,url) {
if (info.pending_version) {
events.emit("runtime-event",{id:"node/upgraded",retain:false,payload:{module:info.name,version:info.pending_version}});
} else {
if (!info.nodes.length && info.plugins.length) {
if (info.plugins.length) {
events.emit("runtime-event",{id:"plugin/added",retain:false,payload:info.plugins});
} else {
}
if (info.nodes.length) {
events.emit("runtime-event",{id:"node/added",retain:false,payload:info.nodes});
}
}