From e19b96026de3cda386df28bf52b35e7245af9de8 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Tue, 14 Feb 2023 11:45:30 +0100 Subject: [PATCH] Make the reload button reload metadata when plugin is disabled --- src/controllers/plugins/PluginController.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/controllers/plugins/PluginController.cpp b/src/controllers/plugins/PluginController.cpp index 1b91c3927..f79d7e907 100644 --- a/src/controllers/plugins/PluginController.cpp +++ b/src/controllers/plugins/PluginController.cpp @@ -253,12 +253,9 @@ bool PluginController::reload(const QString &codename) getApp()->commands->unregisterPluginCommand(cmd); } it->second->ownedCommands.clear(); - if (PluginController::isEnabled(codename)) - { - QDir loadDir = it->second->loadDirectory_; - this->plugins_.erase(codename); - this->tryLoadFromDir(loadDir); - } + QDir loadDir = it->second->loadDirectory_; + this->plugins_.erase(codename); + this->tryLoadFromDir(loadDir); return true; }