Commit d93660cc authored by Jan Möbius's avatar Jan Möbius

Restore if window was maximized on close

closes #58
parent cf7bbf72
......@@ -662,6 +662,11 @@ Core::init() {
coreWidget_->toolBox_->restoreState (windowStates);
windowStates.endGroup ();
// Restore if window was maximized or not
if ( windowStates.value("Core/Window/WindowState",false).toBool() )
coreWidget_->setWindowState( coreWidget_->windowState() | Qt::WindowMaximized );
} else {
coreWidget_->show();
......@@ -1132,6 +1137,7 @@ Core::writeOnExit() {
windowStates.setValue("Core/Window/State", coreWidget_->saveState ());
windowStates.setValue("Core/Window/Geometry", coreWidget_->saveGeometry ());
windowStates.setValue("Core/Window/WindowState", coreWidget_->isMaximized() );
windowStates.setValue ("Core/ToolSplitter", coreWidget_->toolSplitter_->saveState ());
windowStates.setValue ("Core/LogSplitter", coreWidget_->splitter_->saveState ());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment