diff --git a/src/app/GUI/mainwindow.cpp b/src/app/GUI/mainwindow.cpp index 46435295b..582aa6947 100644 --- a/src/app/GUI/mainwindow.cpp +++ b/src/app/GUI/mainwindow.cpp @@ -1016,6 +1016,7 @@ void MainWindow::setupMenuBar() connect(mViewFillStrokeAct, &QAction::triggered, this, [this](bool triggered) { mUI->setDockVisible("Fill and Stroke", triggered); + AppSupport::setSettings("ui", "FillStrokeVisible", triggered); }); mTimelineWindowAct = mViewMenu->addAction(tr("Timeline in Window")); @@ -1695,11 +1696,21 @@ void MainWindow::readSettings(const QString &openProject) const bool visibleToolBarColor = AppSupport::getSettings("ui", "ToolBarColorVisible", true).toBool(); + + const bool visibleFillStroke = AppSupport::getSettings("ui", + "FillStrokeVisible", + true).toBool(); + mToolBarMainAct->setChecked(visibleToolBarMain); mToolBarColorAct->setChecked(visibleToolBarColor); mToolbar->setVisible(visibleToolBarMain); mColorToolBar->setVisible(visibleToolBarColor); + mViewFillStrokeAct->setChecked(visibleFillStroke); + if (!visibleFillStroke) { + mUI->setDockVisible("Fill and Stroke", false); + } + mViewFullScreenAct->blockSignals(true); mViewFullScreenAct->setChecked(isFull); mViewFullScreenAct->blockSignals(false);