Refresh the update status after all catalogs have been loaded

Co-authored-by: Nick O'Leary <nick.oleary@gmail.com>
This commit is contained in:
GogoVega 2024-11-07 15:45:22 +01:00
parent 69e4a02b28
commit 83c4ac5f65
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B

View File

@ -461,7 +461,6 @@ RED.palette.editor = (function() {
loadedCatalogs.push({ index: index, url: url, name: v.name, updated_at: v.updated_at, modules_count: (v.modules || []).length })
handleCatalogResponse(null,{ url: url, name: v.name},index,v);
refreshNodeModuleList();
refreshUpdateStatus();
}).fail(function(jqxhr, textStatus, error) {
console.warn("Error loading catalog",url,":",error);
handleCatalogResponse(jqxhr,url,index);
@ -474,6 +473,8 @@ RED.palette.editor = (function() {
}
})
}
// Now all catalogs have been loaded, refresh the update status
refreshUpdateStatus();
}
}