From c546c603247bac4646fdc128756c577161911bc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 13 Dec 2020 10:29:12 +0100 Subject: [PATCH] Call g_Config.Save() first thing in MainScreen::OnExit. Workaround for #13286 --- UI/MainScreen.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index da45fc83df..307f854006 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -1369,14 +1369,12 @@ UI::EventReturn MainScreen::OnForums(UI::EventParams &e) { } UI::EventReturn MainScreen::OnExit(UI::EventParams &e) { - System_SendMessage("event", "exitprogram"); + // Let's make sure the config was saved, since it may not have been. + g_Config.Save("MainScreen::OnExit"); // Request the framework to exit cleanly. System_SendMessage("finish", ""); - // However, let's make sure the config was saved, since it may not have been. - g_Config.Save("MainScreen::OnExit"); - #ifdef __ANDROID__ #ifdef ANDROID_NDK_PROFILER moncleanup();