DolphinQt: Call OnEmulationStateChanged when creating config window panes

Otherwise UI elements won't be disabled correctly if the config
window is first opened while a game is running.
This commit is contained in:
JosJuice
2019-10-26 17:50:54 +02:00
parent f54faedd76
commit 8833e2a7fa
3 changed files with 5 additions and 0 deletions

View File

@ -50,6 +50,8 @@ GeneralPane::GeneralPane(QWidget* parent) : QWidget(parent)
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
&GeneralPane::OnEmulationStateChanged);
OnEmulationStateChanged(Core::GetState());
}
void GeneralPane::CreateLayout()