Permalink
Browse files

Merge pull request #7056 from spycrab/qt_hk_debug

Qt/HotkeyWindow: Always show debugging tab
  • Loading branch information...
leoetlino committed Jun 3, 2018
2 parents 327eb13 + 0cc20e9 commit 66ee47c4179c2948dfa107df852fdb709cedf7b4
Showing with 1 addition and 10 deletions.
  1. +1 −10 Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp
@@ -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));

0 comments on commit 66ee47c

Please sign in to comment.