1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

NavigationBar: Only reload layout when settings changes

This commit is contained in:
David Rosca 2018-01-08 17:53:53 +01:00
parent e33174100e
commit df632c7ced
3 changed files with 4 additions and 4 deletions

View File

@ -187,8 +187,6 @@ NavigationBar::NavigationBar(BrowserWindow* window)
connect(buttonAddTab, SIGNAL(middleMouseClicked()), m_window->tabWidget(), SLOT(addTabFromClipboard()));
connect(m_exitFullscreen, SIGNAL(clicked(bool)), m_window, SLOT(toggleFullScreen()));
connect(mApp, &MainApplication::settingsReloaded, this, &NavigationBar::loadSettings);
addWidget(backNextWidget, QSL("button-backforward"), tr("Back and Forward buttons"));
addWidget(m_reloadStop, QSL("button-reloadstop"), tr("Reload button"));
addWidget(buttonHome, QSL("button-home"), tr("Home button"));

View File

@ -81,7 +81,10 @@ void NavigationBarConfigDialog::saveSettings()
settings.setValue(QSL("ShowSearchBar"), ui->showSearchBar->isChecked());
settings.endGroup();
mApp->reloadSettings();
const auto windows = mApp->windows();
for (BrowserWindow *window : windows) {
window->navigationBar()->loadSettings();
}
}
void NavigationBarConfigDialog::resetToDefaults()

View File

@ -33,7 +33,6 @@
#include "networkmanager.h"
#include "desktopnotificationsfactory.h"
#include "desktopnotification.h"
#include "navigationbar.h"
#include "thememanager.h"
#include "acceptlanguage.h"
#include "qztools.h"