aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-25 02:09:37 +0530
committerLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-25 02:09:37 +0530
commitb2f0fe493f8f09aa513470b3d22a43586331150b (patch)
treed3337c59bec8dc50d8936bf611e318738375d743
parent247ed75f28c863434a2eae7501a3510c87fc6c80 (diff)
downloadwhatsie-b2f0fe493f8f09aa513470b3d22a43586331150b.tar.gz
whatsie-b2f0fe493f8f09aa513470b3d22a43586331150b.zip
fix: obey fullview settings on first launch & initial window size
-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) {