Skip to content

Commit

Permalink
WiiSpeakWindow: Don't hide QGroupBox
Browse files Browse the repository at this point in the history
  • Loading branch information
sepalani committed Sep 28, 2024
1 parent 296bd70 commit 018c914
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Core/DolphinQt/EmulatedUSB/WiiSpeakWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <QComboBox>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QString>
#include <QVBoxLayout>

Expand Down Expand Up @@ -38,6 +39,10 @@ WiiSpeakWindow::~WiiSpeakWindow() = default;
void WiiSpeakWindow::CreateMainWindow()
{
auto* main_layout = new QVBoxLayout();
auto* label = new QLabel();
label->setText(QStringLiteral("<center><i>%1</i></center>")
.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();
Expand Down Expand Up @@ -74,7 +79,6 @@ 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);
Expand Down

0 comments on commit 018c914

Please sign in to comment.