summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-07-06 14:23:47 +0200
committerGitHub <noreply@github.com>2024-07-06 14:23:47 +0200
commit02e1b9414909db1644562b3669967feff203460f (patch)
tree226b22ed561001c0c6bcbd160306ef63de853a69 /Source/Core/DolphinQt/MainWindow.cpp
parent6ddfdc14836eaa24e08545486468dfdfd603f37a (diff)
parent8b427de28f0674948098a24f5807aad647af7426 (diff)
Merge pull request #12905 from LillyJadeKatrin/retroachievements-hotkey
Add Open Achievements Hotkey
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index 772fee9abf..e68673a205 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -658,6 +658,10 @@ void MainWindow::ConnectHotkeys()
movie.SetReadOnly(read_only);
emit ReadOnlyModeChanged(read_only);
});
+#ifdef USE_RETRO_ACHIEVEMENTS
+ connect(m_hotkey_scheduler, &HotkeyScheduler::OpenAchievements, this,
+ &MainWindow::ShowAchievementsWindow, Qt::QueuedConnection);
+#endif // USE_RETRO_ACHIEVEMENTS
connect(m_hotkey_scheduler, &HotkeyScheduler::Step, m_code_widget, &CodeWidget::Step);
connect(m_hotkey_scheduler, &HotkeyScheduler::StepOver, m_code_widget, &CodeWidget::StepOver);