mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-26 06:03:15 -05:00
Move updateMeshCore call to when a plugin is disabled instead of removed
This commit is contained in:
parent
91cdaca1d4
commit
ef9c2fe321
@ -490,6 +490,7 @@ module.exports.pluginHandler = function (parent) {
|
||||
parent.db.setPluginStatus(id, 0, func);
|
||||
delete obj.plugins[plugin.shortName];
|
||||
delete obj.exports[plugin.shortName];
|
||||
parent.updateMeshCore();
|
||||
});
|
||||
};
|
||||
|
||||
@ -501,7 +502,6 @@ module.exports.pluginHandler = function (parent) {
|
||||
rimraf.sync(pluginPath);
|
||||
parent.db.deletePlugin(id, func);
|
||||
delete obj.plugins[plugin.shortName];
|
||||
obj.parent.updateMeshCore();
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user