From 57860fc33cc911f2dced683dfa25effe30aa1a37 Mon Sep 17 00:00:00 2001 From: Vladimir Svyatski Date: Mon, 9 Apr 2018 22:33:08 +0300 Subject: [PATCH] Fix to apply "Hide toolbar" without restart --- src/gui/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/MainWindow.cpp b/src/gui/MainWindow.cpp index 8f7caa7c3..8cdff237f 100644 --- a/src/gui/MainWindow.cpp +++ b/src/gui/MainWindow.cpp @@ -133,8 +133,6 @@ MainWindow::MainWindow() setAcceptDrops(true); - m_ui->toolBar->setHidden(config()->get("GUI/HideToolbar").toBool()); - // Setup the search widget in the toolbar SearchWidget* search = new SearchWidget(); search->connectSignals(m_actionMultiplexer); @@ -841,6 +839,8 @@ void MainWindow::applySettingsChanges() m_inactivityTimer->deactivate(); } + m_ui->toolBar->setHidden(config()->get("GUI/HideToolbar").toBool()); + updateTrayIcon(); }