diff options
| author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-22 18:11:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-22 18:11:00 +0200 |
| commit | b19129173707e1ff4a9e28b4020519ad5ef188fb (patch) | |
| tree | 82cf0179eb24189212b220c078d32f9730ddaddd /launcher/ui | |
| parent | 29ef1e2c4b46c762e79a2bbe9f4a5a0033bc92ca (diff) | |
| parent | 6dfec4db40f09697f34f65419edb7d689e3c5dc7 (diff) | |
| download | PrismLauncher-b19129173707e1ff4a9e28b4020519ad5ef188fb.tar.gz PrismLauncher-b19129173707e1ff4a9e28b4020519ad5ef188fb.tar.bz2 PrismLauncher-b19129173707e1ff4a9e28b4020519ad5ef188fb.zip | |
Merge pull request #577 from PolyMC/fix/toolbar_🦀_fix
Diffstat (limited to 'launcher/ui')
| -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(); } |
