Fix toolbar disappearing in a certain circumstance.
This commit is contained in:
parent
f66598db8a
commit
6dfec4db40
1 changed files with 3 additions and 0 deletions
|
@ -1865,6 +1865,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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue