summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/SettingsWindow.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2026-03-04 21:53:18 +0100
committerJosJuice <josjuice@gmail.com>2026-03-04 22:26:25 +0100
commitd25ef67d6fc62eb96e0df8241d35a35e8ef38902 (patch)
tree9f5c51dc553db43b1b88245c5f503c1ed58350b0 /Source/Core/DolphinQt/Config/SettingsWindow.cpp
parent239c4e444c82c811eb321481aa26fe3a94d3b3c5 (diff)
DolphinQt: Save when closing settings window
If Dolphin crashes, changes that have been made to settings are often lost. This has been a minor annoyance for me when developing, but it has become a much bigger issue recently due to the problem where Dolphin freezes on shutdown for ROG Ally users. Instead of saving the config when certain arbitrary settings are changed, let's save the config when the user closes the settings window.
Diffstat (limited to 'Source/Core/DolphinQt/Config/SettingsWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/SettingsWindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/SettingsWindow.cpp b/Source/Core/DolphinQt/Config/SettingsWindow.cpp
index e80b1fa7ff..283cd3786e 100644
--- a/Source/Core/DolphinQt/Config/SettingsWindow.cpp
+++ b/Source/Core/DolphinQt/Config/SettingsWindow.cpp
@@ -210,3 +210,8 @@ void SettingsWindow::SelectPane(SettingsWindowPaneIndex index)
{
ActivatePane(std::to_underlying(index));
}
+
+void SettingsWindow::closeEvent(QCloseEvent*)
+{
+ Config::Save();
+}