DolphinQt: Make WiiPane connect itself to EmulationStateChanged

This commit is contained in:
JosJuice 2019-10-26 17:51:43 +02:00
parent 8833e2a7fa
commit 10d972789a
3 changed files with 6 additions and 9 deletions

View file

@ -93,6 +93,10 @@ void WiiPane::ConnectLayout()
connect(m_wiimote_ir_sensitivity, &QSlider::valueChanged, this, &WiiPane::OnSaveConfig);
connect(m_wiimote_speaker_volume, &QSlider::valueChanged, this, &WiiPane::OnSaveConfig);
connect(m_wiimote_motor, &QCheckBox::toggled, this, &WiiPane::OnSaveConfig);
// Emulation State
connect(&Settings::Instance(), &Settings::EmulationStateChanged,
[=](Core::State state) { OnEmulationStateChanged(state != Core::State::Uninitialized); });
}
void WiiPane::CreateMisc()