Make the reload button reload metadata when plugin is disabled

This commit is contained in:
Mm2PL 2023-02-14 11:45:30 +01:00
parent cf9d0af105
commit e19b96026d

View file

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