Call g_Config.Save() first thing in MainScreen::OnExit. Workaround for #13286

This commit is contained in:
Henrik Rydgård committed 2020-12-13 10:31:04 +01:00
1 parent 1c925e705f
commit c546c60324
1 file changed
+2 -4
+2 -4
View File
@@ -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();