Qt/GraphicsWindow: Fix lazy initialisation bugs

This commit is contained in:
spycrab 2018-07-13 12:38:21 +02:00
parent fc967908ea
commit c8af83202a
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ AdvancedWidget::AdvancedWidget(GraphicsWindow* parent) : GraphicsWidget(parent)
[=](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); });
OnBackendChanged();
OnEmulationStateChanged(Core::GetState() != Core::State::Uninitialized);
}
void AdvancedWidget::CreateWidgets()

View File

@ -41,6 +41,7 @@ GeneralWidget::GeneralWidget(X11Utils::XRRConfiguration* xrr_config, GraphicsWin
connect(parent, &GraphicsWindow::BackendChanged, this, &GeneralWidget::OnBackendChanged);
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
[=](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); });
OnEmulationStateChanged(Core::GetState() != Core::State::Uninitialized);
}
void GeneralWidget::CreateWidgets()