Update comments

pull/5284/head
GogoVega 2025-10-09 11:48:01 +02:00
parent 7e4354aa56
commit bc2153bcdf
No known key found for this signature in database
GPG Key ID: E1E048B63AC5AC2B
1 changed files with 4 additions and 1 deletions

View File

@ -1636,8 +1636,11 @@ RED.palette.editor = (function() {
console.warn(`Error while calling 'onremove' for plugin '${id}': `, error);
}
} else if (typeof plugin.onadd === 'function') {
// if there's no 'onadd', there shouldn't be any left-overs
// We assume that the plugin adds something to the editor but is not able to remove it
// Notify the user to refresh the editor to remove that plugin
found_onremove = false;
} else {
// If there's no 'onadd', there shouldn't be any left-overs
}
} else {
// Either the plugin exists only in the runtime or it is a known limitation