summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorLillyJadeKatrin <lilly.kitty.1988@gmail.com>2023-11-15 10:56:15 -0500
committerLillyJadeKatrin <lilly.kitty.1988@gmail.com>2023-12-02 16:41:15 -0500
commit71f3039f9682df901d2554370293b2aaee1a1c27 (patch)
treeabf3953c8f939856a1bc81b167f6087cd83bfc4b /Source/Core/DolphinQt/MainWindow.cpp
parent138e68ef9f7a7cb2bc8640c876ffc800a4d05baf (diff)
Added Hardcore Warning Widget
This widget will be used in several places to notify the player that a feature has been disabled because hardcore mode is on. It includes a button to open the Achievement Settings so that Hardcore Mode may be turned off. Also included is the framework required to open AchievementsWindow specifically on the Settings tab.
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index d9eda82bb1..6cf6ac57bd 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -1971,6 +1971,12 @@ void MainWindow::ShowAchievementsWindow()
m_achievements_window->raise();
m_achievements_window->activateWindow();
}
+
+void MainWindow::ShowAchievementSettings()
+{
+ ShowAchievementsWindow();
+ m_achievements_window->ForceSettingsTab();
+}
#endif // USE_RETRO_ACHIEVEMENTS
void MainWindow::ShowMemcardManager()