Refresh status when registry changes + cleanup

This commit is contained in:
GogoVega 2024-10-29 19:00:04 +01:00
parent 48894d6a95
commit 4248cb6205
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B

View File

@ -626,9 +626,10 @@ RED.palette.editor = (function() {
}
})
// Add the update status to the status bar
addUpdateInfoToStatusBar();
// TODO: Periodically check
setTimeout(getSettingsPane, 1000);
// Load the catalogue and check for updates
getSettingsPane();
RED.actions.add("core:manage-palette",function() {
RED.userSettings.show('palette');
@ -636,6 +637,7 @@ RED.palette.editor = (function() {
RED.events.on('registry:module-updated', function(ns) {
refreshNodeModule(ns.module);
refreshUpdateStatus();
});
RED.events.on('registry:node-set-enabled', function(ns) {
refreshNodeModule(ns.module);
@ -653,6 +655,7 @@ RED.palette.editor = (function() {
if (!/^subflow:/.test(nodeType)) {
var ns = RED.nodes.registry.getNodeSetForType(nodeType);
refreshNodeModule(ns.module);
refreshUpdateStatus();
}
});
RED.events.on('registry:node-set-added', function(ns) {