mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Make the reload button reload metadata when plugin is disabled
This commit is contained in:
parent
cf9d0af105
commit
e19b96026d
1 changed files with 3 additions and 6 deletions
|
@ -253,12 +253,9 @@ bool PluginController::reload(const QString &codename)
|
||||||
getApp()->commands->unregisterPluginCommand(cmd);
|
getApp()->commands->unregisterPluginCommand(cmd);
|
||||||
}
|
}
|
||||||
it->second->ownedCommands.clear();
|
it->second->ownedCommands.clear();
|
||||||
if (PluginController::isEnabled(codename))
|
|
||||||
{
|
|
||||||
QDir loadDir = it->second->loadDirectory_;
|
QDir loadDir = it->second->loadDirectory_;
|
||||||
this->plugins_.erase(codename);
|
this->plugins_.erase(codename);
|
||||||
this->tryLoadFromDir(loadDir);
|
this->tryLoadFromDir(loadDir);
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue