Skip to content
Permalink
Browse files

DolphinQt: Call OnEmulationStateChanged when creating config window p…

…anes

Otherwise UI elements won't be disabled correctly if the config
window is first opened while a game is running.
  • Loading branch information...
JosJuice committed Oct 26, 2019
1 parent f54faed commit 8833e2a7fa35b5754eae1b18eab93d0515a4ae16
@@ -37,6 +37,8 @@ AudioPane::AudioPane()
connect(&Settings::Instance(), &Settings::VolumeChanged, this, &AudioPane::OnVolumeChanged);
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
[=](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); });

OnEmulationStateChanged(Core::GetState() != Core::State::Uninitialized);
}

void AudioPane::CreateWidgets()
@@ -50,6 +50,8 @@ GeneralPane::GeneralPane(QWidget* parent) : QWidget(parent)

connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
&GeneralPane::OnEmulationStateChanged);

OnEmulationStateChanged(Core::GetState());
}

void GeneralPane::CreateLayout()
@@ -48,6 +48,7 @@ WiiPane::WiiPane(QWidget* parent) : QWidget(parent)
LoadConfig();
ConnectLayout();
ValidateSelectionState();
OnEmulationStateChanged(Core::GetState() != Core::State::Uninitialized);
}

void WiiPane::CreateLayout()

0 comments on commit 8833e2a

Please sign in to comment.
You can’t perform that action at this time.