Fix to apply "Hide toolbar" without restart

This commit is contained in:
Vladimir Svyatski 2018-04-09 22:33:08 +03:00
parent d843ad414a
commit 57860fc33c

View File

@ -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();
}