mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 22:38:34 +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
|
@ -39,14 +39,7 @@ SettingsWindow::SettingsWindow(QWidget* parent) : QDialog(parent)
|
|||
m_tab_widget->addTab(GetWrappedWidget(new AudioPane, this, 125, 100), tr("Audio"));
|
||||
m_tab_widget->addTab(GetWrappedWidget(new PathPane, this, 125, 100), tr("Paths"));
|
||||
m_tab_widget->addTab(GetWrappedWidget(new GameCubePane, this, 125, 100), tr("GameCube"));
|
||||
|
||||
auto* wii_pane = new WiiPane;
|
||||
m_tab_widget->addTab(GetWrappedWidget(wii_pane, this, 125, 100), tr("Wii"));
|
||||
|
||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, [wii_pane](Core::State state) {
|
||||
wii_pane->OnEmulationStateChanged(state != Core::State::Uninitialized);
|
||||
});
|
||||
|
||||
m_tab_widget->addTab(GetWrappedWidget(new WiiPane, this, 125, 100), tr("Wii"));
|
||||
m_tab_widget->addTab(GetWrappedWidget(new AdvancedPane, this, 125, 200), tr("Advanced"));
|
||||
|
||||
// Dialog box buttons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue