Merge pull request #577 from PolyMC/fix/toolbar_🦀_fix

This commit is contained in:
Sefa Eyeoglu 2022-05-22 18:11:00 +02:00 committed by GitHub
commit b191291737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1868,6 +1868,9 @@ void MainWindow::globalSettingsClosed()
updateMainToolBar(); updateMainToolBar();
updateToolsMenu(); updateToolsMenu();
updateStatusCenter(); 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(); update();
} }