mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-04 23:29:17 +00:00
DolphinQt: Make WiiPane connect itself to EmulationStateChanged
This commit is contained in:
parent
8833e2a7fa
commit
10d972789a
3 changed files with 6 additions and 9 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue