Skip to content
Permalink
Browse files

DolphinQt: Hide unused buttons in the advanced mapping dialog.

  • Loading branch information
jordan-woyak committed Nov 8, 2019
1 parent d8c62b5 commit a6b3a2cd4f780c076f2352790574204b89f5c531
Showing with 15 additions and 3 deletions.
  1. +15 −3 Source/Core/DolphinQt/Config/Mapping/IOWindow.cpp
@@ -323,13 +323,25 @@ void IOWindow::CreateMainLayout()
hbox->addLayout(button_vbox, 1);

button_vbox->addWidget(m_select_button);
button_vbox->addWidget(m_type == Type::Input ? m_detect_button : m_test_button);
button_vbox->addWidget(m_operators_combo);

if (m_type == Type::Input)
{
button_vbox->addWidget(m_functions_combo);
m_test_button->hide();
button_vbox->addWidget(m_detect_button);
}
else
{
m_detect_button->hide();
button_vbox->addWidget(m_test_button);
}

button_vbox->addWidget(m_operators_combo);

if (m_type == Type::Input)
button_vbox->addWidget(m_functions_combo);
else
m_functions_combo->hide();

m_main_layout->addLayout(hbox, 2);
m_main_layout->addWidget(m_expression_text, 1);
m_main_layout->addWidget(m_parse_text);

0 comments on commit a6b3a2c

Please sign in to comment.
You can’t perform that action at this time.