diff options
| author | Ryan Cao <70191398+ryanccn@users.noreply.github.com> | 2022-05-28 21:15:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-28 21:15:00 +0800 |
| commit | 2be8100e7cb625f3e6356a68f20291c5aa327c02 (patch) | |
| tree | eaf364705154e0457a1bde40dff8b2c8d843c8e5 /launcher/ui/MainWindow.cpp | |
| parent | 6d0ea13f97570f837f11022e3ef0fbfb6d0482f5 (diff) | |
| parent | 3ff26d5cfe293c635655d35e96d093ef0b383dc2 (diff) | |
| download | PrismLauncher-2be8100e7cb625f3e6356a68f20291c5aa327c02.tar.gz PrismLauncher-2be8100e7cb625f3e6356a68f20291c5aa327c02.tar.bz2 PrismLauncher-2be8100e7cb625f3e6356a68f20291c5aa327c02.zip | |
Merge branch 'develop' into global-jvm-args
Diffstat (limited to 'launcher/ui/MainWindow.cpp')
| -rw-r--r-- | launcher/ui/MainWindow.cpp | 3 |
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(); } |
