Permalink
Browse files

Qt/ToolBar: Fix checkbox and actual visibility not being in sync

  • Loading branch information...
spycrab committed Apr 28, 2018
1 parent 0cd46f4 commit dd6ac93ad0edc39ae520359141fa04b2688fee5e
Showing with 2 additions and 1 deletion.
  1. +1 −1 Source/Core/DolphinQt2/Settings.cpp
  2. +1 −0 Source/Core/DolphinQt2/ToolBar.cpp
@@ -399,7 +399,7 @@ void Settings::SetToolBarVisible(bool visible)
bool Settings::IsToolBarVisible() const
{
return GetQSettings().value(QStringLiteral("toolbar/visible")).toBool();
return GetQSettings().value(QStringLiteral("toolbar/visible"), true).toBool();
}
void Settings::SetWidgetsLocked(bool locked)
@@ -21,6 +21,7 @@ ToolBar::ToolBar(QWidget* parent) : QToolBar(parent)
setMovable(!Settings::Instance().AreWidgetsLocked());
setFloatable(false);
setIconSize(ICON_SIZE);
setVisible(Settings::Instance().IsToolBarVisible());
setWindowTitle(tr("Toolbar"));
setObjectName(QStringLiteral("toolbar"));

0 comments on commit dd6ac93

Please sign in to comment.