Commit 8b83c7be authored by Jan Möbius's avatar Jan Möbius

Merge branch 'Store_Maximized_State' into 'master'

Restore if window was maximized on close

closes #58

See merge request !114
parents f448ab8e 08ca8858
Pipeline #2131 passed with stage
in 77 minutes and 26 seconds
......@@ -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