summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/SettingsWindow.h
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.h
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.h')
-rw-r--r--Source/Core/DolphinQt/Config/SettingsWindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/SettingsWindow.h b/Source/Core/DolphinQt/Config/SettingsWindow.h
index 3874c75ae0..c27d6e919d 100644
--- a/Source/Core/DolphinQt/Config/SettingsWindow.h
+++ b/Source/Core/DolphinQt/Config/SettingsWindow.h
@@ -60,4 +60,6 @@ public:
explicit SettingsWindow(MainWindow* parent);
void SelectPane(SettingsWindowPaneIndex);
+
+ void closeEvent(QCloseEvent* event) override;
};