Merge pull request #7056 from spycrab/qt_hk_debug

Qt/HotkeyWindow: Always show debugging tab
This commit is contained in:
Léo Lam 2018-06-03 13:50:56 +02:00 committed by GitHub
commit 66ee47c417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 10 deletions

View File

@ -304,16 +304,7 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
AddWidget(tr("General"), widget);
AddWidget(tr("TAS Tools"), new HotkeyTAS(this));
HotkeyDebugging* debugging_widget = new HotkeyDebugging(this);
QWidget* debugging_widget_wrapper = GetWrappedWidget(debugging_widget, this, 150, 205);
connect(&Settings::Instance(), &Settings::DebugModeToggled, this, [=](bool enabled) {
if (enabled)
m_tab_widget->insertTab(2, debugging_widget_wrapper, tr("Debugging"));
else
m_tab_widget->removeTab(2);
});
if (Settings::Instance().IsDebugModeEnabled())
AddWidget(tr("Debugging"), debugging_widget);
AddWidget(tr("Debugging"), new HotkeyDebugging(this));
AddWidget(tr("Wii and Wii Remote"), new HotkeyWii(this));
AddWidget(tr("Graphics"), new HotkeyGraphics(this));