Skip to content

Commit

Permalink
Merge pull request #7260 from spycrab/qt_fix_lazy
Browse files Browse the repository at this point in the history
Qt/GraphicsWindow: Fix lazy initialisation bugs
  • Loading branch information
spycrab committed Jul 13, 2018
2 parents cc6526f + c8af832 commit 4826acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinQt/Config/Graphics/GeneralWidget.cpp
Expand Up @@ -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()
Expand Down

0 comments on commit 4826acd

Please sign in to comment.