From ef9c2fe3218abfda705558fd7059c0da36e60ace Mon Sep 17 00:00:00 2001 From: Ryan Blenis Date: Wed, 4 Dec 2019 21:36:53 -0500 Subject: [PATCH] Move updateMeshCore call to when a plugin is disabled instead of removed --- pluginHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pluginHandler.js b/pluginHandler.js index 89193ffd..6e8d31a7 100644 --- a/pluginHandler.js +++ b/pluginHandler.js @@ -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(); }); };