mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
NavigationBar: Only reload layout when settings changes
This commit is contained in:
parent
e33174100e
commit
df632c7ced
@ -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"));
|
||||
|
@ -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()
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user