mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinQt: Make WiiPane connect itself to EmulationStateChanged
This commit is contained in:
@ -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()
|
||||
|
@ -19,7 +19,6 @@ class WiiPane : public QWidget
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit WiiPane(QWidget* parent = nullptr);
|
||||
void OnEmulationStateChanged(bool running);
|
||||
|
||||
private:
|
||||
void PopulateUSBPassthroughListWidget();
|
||||
@ -31,6 +30,7 @@ private:
|
||||
|
||||
void LoadConfig();
|
||||
void OnSaveConfig();
|
||||
void OnEmulationStateChanged(bool running);
|
||||
|
||||
void ValidateSelectionState();
|
||||
|
||||
|
Reference in New Issue
Block a user