refactor: Remove most raw accesses into Application (#5104)
This commit is contained in:
@@ -281,7 +281,7 @@ bool PluginController::reload(const QString &id)
|
||||
}
|
||||
for (const auto &[cmd, _] : it->second->ownedCommands)
|
||||
{
|
||||
getApp()->commands->unregisterPluginCommand(cmd);
|
||||
getIApp()->getCommands()->unregisterPluginCommand(cmd);
|
||||
}
|
||||
it->second->ownedCommands.clear();
|
||||
QDir loadDir = it->second->loadDirectory_;
|
||||
|
||||
Reference in New Issue
Block a user