mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-14 00:58:51 +02:00
Qt/hotkeys: do not show the debugging tab if the debugger is disabled
This commit is contained in:
@ -289,7 +289,18 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
|
||||
widget = new HotkeyGeneral(this);
|
||||
AddWidget(tr("General"), widget);
|
||||
AddWidget(tr("TAS Tools"), new HotkeyTAS(this));
|
||||
AddWidget(tr("Debugging"), new HotkeyDebugging(this));
|
||||
|
||||
HotkeyDebugging* debugging_widget = new HotkeyDebugging(this);
|
||||
QWidget* debugging_widget_wrapper = GetWrappedWidget(debugging_widget, this, 150, 150);
|
||||
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("Wii and Wii Remote"), new HotkeyWii(this));
|
||||
AddWidget(tr("Graphics"), new HotkeyGraphics(this));
|
||||
AddWidget(tr("3D"), new Hotkey3D(this));
|
||||
|
Reference in New Issue
Block a user