diff --git a/Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.cpp b/Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.cpp index 093c08b778b5..fc81a4987e6f 100644 --- a/Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.cpp +++ b/Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.cpp @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -38,13 +39,16 @@ WiiSpeakWindow::~WiiSpeakWindow() = default; void WiiSpeakWindow::CreateMainWindow() { auto* main_layout = new QVBoxLayout(); + auto* label = new QLabel(); + label->setText(QStringLiteral("
%1
") + .arg(tr("Some settings cannot be changed when emulation is running."))); + main_layout->addWidget(label); auto* checkbox_group = new QGroupBox(); auto* checkbox_layout = new QHBoxLayout(); checkbox_layout->setAlignment(Qt::AlignHCenter); m_checkbox_enabled = new QCheckBox(tr("Emulate Wii Speak"), this); m_checkbox_enabled->setChecked(Config::Get(Config::MAIN_EMULATE_WII_SPEAK)); - connect(m_checkbox_enabled, &QCheckBox::toggled, this, &WiiSpeakWindow::EmulateWiiSpeak); checkbox_layout->addWidget(m_checkbox_enabled); checkbox_group->setLayout(checkbox_layout); main_layout->addWidget(checkbox_group); @@ -74,18 +78,11 @@ void WiiSpeakWindow::CreateMainWindow() config_layout->addWidget(m_combobox_microphones); m_config_group->setLayout(config_layout); - m_config_group->setVisible(Config::Get(Config::MAIN_EMULATE_WII_SPEAK)); main_layout->addWidget(m_config_group); setLayout(main_layout); } -void WiiSpeakWindow::EmulateWiiSpeak(bool emulate) -{ - Config::SetBaseOrCurrent(Config::MAIN_EMULATE_WII_SPEAK, emulate); - m_config_group->setVisible(emulate); -} - void WiiSpeakWindow::SetWiiSpeakConnectionState(bool muted) { Config::SetBaseOrCurrent(Config::MAIN_WII_SPEAK_MUTED, muted); diff --git a/Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.h b/Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.h index 1a6d155583aa..a8e33de18014 100644 --- a/Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.h +++ b/Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.h @@ -22,7 +22,6 @@ class WiiSpeakWindow : public QWidget private: void CreateMainWindow(); void OnEmulationStateChanged(Core::State state); - void EmulateWiiSpeak(bool emulate); void SetWiiSpeakConnectionState(bool connected); void OnInputDeviceChange();