aboutsummaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorDioEgizio <83089242+DioEgizio@users.noreply.github.com>2022-05-22 20:03:10 +0200
committerGitHub <noreply@github.com>2022-05-22 20:03:10 +0200
commit2be583ad4de0a8b85c1d7592c944c75481e9fad9 (patch)
treeeb11c81d365cf20a3219c4e13eacab38dc775f20 /launcher
parentc988b4d213b4125d298c893637a2362a7f192fce (diff)
parentefcba698ac3846019db1947f986c64aa477170af (diff)
downloadPrismLauncher-2be583ad4de0a8b85c1d7592c944c75481e9fad9.tar.gz
PrismLauncher-2be583ad4de0a8b85c1d7592c944c75481e9fad9.tar.bz2
PrismLauncher-2be583ad4de0a8b85c1d7592c944c75481e9fad9.zip
Merge branch 'PolyMC:develop' into patch-6
Diffstat (limited to 'launcher')
-rw-r--r--launcher/ui/MainWindow.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/ui/MainWindow.cpp b/launcher/ui/MainWindow.cpp
index f016dc76..7e152b96 100644
--- a/launcher/ui/MainWindow.cpp
+++ b/launcher/ui/MainWindow.cpp
@@ -1868,6 +1868,9 @@ void MainWindow::globalSettingsClosed()
updateMainToolBar();
updateToolsMenu();
updateStatusCenter();
+ // This needs to be done to prevent UI elements disappearing in the event the config is changed
+ // but PolyMC exits abnormally, causing the window state to never be saved:
+ APPLICATION->settings()->set("MainWindowState", saveState().toBase64());
update();
}