fix: fixed crash after disabling a GUI plugin

This commit is contained in:
QxQ 2020-09-08 12:51:12 +08:00 committed by GitHub
parent 064ad2da38
commit 69e420f47a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,7 +345,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent)
checker->CheckUpdate();
splitter->setSizes({ 200, 300 });
//
for (const auto &name : PluginHost->AvailablePlugins())
for (const auto &name : PluginHost->UsablePlugins())
{
const auto &plugin = PluginHost->GetPlugin(name);
if (!plugin->hasComponent(COMPONENT_GUI))