mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 03:24:59 +00:00
WiiSpeakWindow: Don't hide QGroupBox
This commit is contained in:
parent
f693bccd10
commit
a1500ad05a
1 changed files with 5 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
|||
#include <QComboBox>
|
||||
#include <QGroupBox>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLabel>
|
||||
#include <QString>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
@ -83,7 +87,6 @@ void WiiSpeakWindow::CreateMainWindow()
|
|||
void WiiSpeakWindow::EmulateWiiSpeak(bool emulate)
|
||||
{
|
||||
Config::SetBaseOrCurrent(Config::MAIN_EMULATE_WII_SPEAK, emulate);
|
||||
m_config_group->setVisible(emulate);
|
||||
}
|
||||
|
||||
void WiiSpeakWindow::SetWiiSpeakConnectionState(bool muted)
|
||||
|
|
Loading…
Add table
Reference in a new issue