aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 683072f..ecb4141 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -152,7 +152,6 @@ void MainWindow::updatePageTheme() {
if (windowTheme == "dark") {
webPageTheme = "web dark";
}
-#ifdef QT_DEBUG
if (webEngine && webEngine->page()) {
webEngine->page()->runJavaScript(
"document.querySelector('body').className='" + webPageTheme + "';",
@@ -160,7 +159,6 @@ void MainWindow::updatePageTheme() {
qDebug() << "Value is: " << result.toString() << Qt::endl;
});
}
-#endif
}
void MainWindow::resizeEvent(QResizeEvent *event) {
@@ -600,7 +598,7 @@ void MainWindow::change_lock_password() {
settings.remove("asdfg");
settingsWidget->appLockSetChecked(false);
settingsWidget->clearAllData();
- doReload(true);
+ doAppReload();
init_lock();
}
@@ -819,6 +817,7 @@ void MainWindow::handleLoadFinished(bool loaded) {
checkLoadedCorrectly();
updatePageTheme();
handleZoom();
+ settingsWidget->refresh();
}
}