From cc5ea21f1c72ce8d0f8ec4bbd52045c4cc215cdf Mon Sep 17 00:00:00 2001 From: Tobias Date: Sat, 25 Feb 2023 11:57:59 +0100 Subject: [PATCH] citra_qt: Write to config file on important config changes (#6311) Qt isn't always writing changes on save. This causes config to be lost on crash. This PR ensures all changes are always saved on the file. Ported from yuzu. Co-authored-by: Narr the Reg <5944268+german77@users.noreply.github.com> --- src/citra_qt/configuration/config.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/citra_qt/configuration/config.cpp b/src/citra_qt/configuration/config.cpp index d611d3306..818680f5d 100644 --- a/src/citra_qt/configuration/config.cpp +++ b/src/citra_qt/configuration/config.cpp @@ -821,6 +821,7 @@ void Config::SaveValues() { SaveLayoutValues(); SaveAudioValues(); SaveSystemValues(); + qt_config->sync(); } void Config::SaveAudioValues() {