summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MenuBar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/DolphinQt/MenuBar.cpp')
-rw-r--r--Source/Core/DolphinQt/MenuBar.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp
index 25a7a1dd5b..453260ea91 100644
--- a/Source/Core/DolphinQt/MenuBar.cpp
+++ b/Source/Core/DolphinQt/MenuBar.cpp
@@ -168,6 +168,7 @@ void MenuBar::OnDebugModeToggled(bool enabled)
// View
m_show_code->setVisible(enabled);
m_show_registers->setVisible(enabled);
+ m_show_threads->setVisible(enabled);
m_show_watch->setVisible(enabled);
m_show_breakpoints->setVisible(enabled);
m_show_memory->setVisible(enabled);
@@ -445,6 +446,14 @@ void MenuBar::AddViewMenu()
connect(&Settings::Instance(), &Settings::RegistersVisibilityChanged, m_show_registers,
&QAction::setChecked);
+ m_show_threads = view_menu->addAction(tr("&Threads"));
+ m_show_threads->setCheckable(true);
+ m_show_threads->setChecked(Settings::Instance().IsThreadsVisible());
+
+ connect(m_show_threads, &QAction::toggled, &Settings::Instance(), &Settings::SetThreadsVisible);
+ connect(&Settings::Instance(), &Settings::ThreadsVisibilityChanged, m_show_threads,
+ &QAction::setChecked);
+
// i18n: This kind of "watch" is used for watching emulated memory.
// It's not related to timekeeping devices.
m_show_watch = view_menu->addAction(tr("&Watch"));