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

Store StatusBar visibility in properties and apply it correctly when toggling...

Store StatusBar visibility in properties and apply it correctly when toggling fullscreen modes or when restarting the application

closes #1356



git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16002 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 803f8491
......@@ -676,7 +676,8 @@ CoreWidget::toggleFullscreen() {
//hide the menubar
menuBar()->hide();
//hide the statusbar
// hide the statusbar but don't change its last state, as this is only the large fullscreen mode
// that hides everything.
statusBar()->hide();
break;
......@@ -692,8 +693,10 @@ CoreWidget::toggleFullscreen() {
//show the menubar
menuBar()->show();
//show the statusbar
statusBar()->show();
// show the statusbar if this is the requested state
// stored in the properties
if ( ! OpenFlipperSettings().value("Core/Gui/StatusBar/hidden",false).toBool() )
statusBar()->show();
break;
......
......@@ -83,6 +83,11 @@ void CoreWidget::setupStatusBar()
statusIcon_->setPixmap(pix.scaled(12,12,Qt::KeepAspectRatio,Qt::SmoothTransformation));
statusBar_->addPermanentWidget(statusIcon_);
if ( ! OpenFlipperSettings().value("Core/Gui/StatusBar/hidden",false).toBool() )
statusBar()->show();
else
statusBar()->hide();
}
//=============================================================================
......
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