Move updateMeshCore call to when a plugin is disabled instead of removed

This commit is contained in:
Ryan Blenis 2019-12-04 21:36:53 -05:00
parent 2336f955ed
commit 0cbbdd25d0

View File

@ -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();
});
};