aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp4
-rw-r--r--src/settingswidget.cpp1
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e2bef52..553115a 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -46,7 +46,7 @@ void MainWindow::restoreMainWindow() {
}
}
} else {
- this->resize(636, 760);
+ this->resize(800, 684);
}
}
@@ -930,9 +930,9 @@ void MainWindow::handleLoadFinished(bool loaded) {
updatePageTheme();
handleZoom();
injectMutationObserver();
+ injectFullWidthJavaScript();
injectClassChangeObserver();
injectNewChatJavaScript();
- injectFullWidthJavaScript();
settingsWidget->refresh();
}
}
diff --git a/src/settingswidget.cpp b/src/settingswidget.cpp
index 4d13cbb..b272565 100644
--- a/src/settingswidget.cpp
+++ b/src/settingswidget.cpp
@@ -258,6 +258,7 @@ void SettingsWidget::refresh() {
// enable disable spell check
ui->enableSpellCheck->setChecked(settings.value("sc_enabled", true).toBool());
+ emit updateFullWidthView(settings.value("fullWidthView", true).toBool());
}
void SettingsWidget::updateDefaultUAButton(const QString engineUA) {