mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
[Preferences] Lazy reload of MainApp preferences
Re-setting user stylesheet with a lot of AdBlock hiding rules takes quite some time for QtWebKitSettings.
This commit is contained in:
parent
c026594175
commit
354b9d1695
|
@ -424,7 +424,8 @@ void MainApplication::loadSettings()
|
|||
|
||||
void MainApplication::reloadSettings()
|
||||
{
|
||||
loadSettings();
|
||||
QTimer::singleShot(0, this, SLOT(loadSettings()));
|
||||
|
||||
emit message(Qz::AM_ReloadSettings, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -72,7 +72,6 @@ public:
|
|||
~MainApplication();
|
||||
|
||||
void connectDatabase();
|
||||
void loadSettings();
|
||||
void reloadSettings();
|
||||
bool restoreStateSlot(QupZilla* window, RestoreData recoveryData);
|
||||
QupZilla* makeNewWindow(Qz::BrowserWindow type, const QUrl &startUrl = QUrl());
|
||||
|
@ -152,6 +151,7 @@ signals:
|
|||
void message(Qz::AppMessageType mes, bool state);
|
||||
|
||||
private slots:
|
||||
void loadSettings();
|
||||
void postLaunch();
|
||||
void setupJumpList();
|
||||
void restoreCursor();
|
||||
|
|
Loading…
Reference in New Issue
Block a user