mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +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()
|
void MainApplication::reloadSettings()
|
||||||
{
|
{
|
||||||
loadSettings();
|
QTimer::singleShot(0, this, SLOT(loadSettings()));
|
||||||
|
|
||||||
emit message(Qz::AM_ReloadSettings, true);
|
emit message(Qz::AM_ReloadSettings, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,6 @@ public:
|
|||||||
~MainApplication();
|
~MainApplication();
|
||||||
|
|
||||||
void connectDatabase();
|
void connectDatabase();
|
||||||
void loadSettings();
|
|
||||||
void reloadSettings();
|
void reloadSettings();
|
||||||
bool restoreStateSlot(QupZilla* window, RestoreData recoveryData);
|
bool restoreStateSlot(QupZilla* window, RestoreData recoveryData);
|
||||||
QupZilla* makeNewWindow(Qz::BrowserWindow type, const QUrl &startUrl = QUrl());
|
QupZilla* makeNewWindow(Qz::BrowserWindow type, const QUrl &startUrl = QUrl());
|
||||||
@ -152,6 +151,7 @@ signals:
|
|||||||
void message(Qz::AppMessageType mes, bool state);
|
void message(Qz::AppMessageType mes, bool state);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
|
void loadSettings();
|
||||||
void postLaunch();
|
void postLaunch();
|
||||||
void setupJumpList();
|
void setupJumpList();
|
||||||
void restoreCursor();
|
void restoreCursor();
|
||||||
|
Loading…
Reference in New Issue
Block a user