From b2f0fe493f8f09aa513470b3d22a43586331150b Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Sat, 25 Jun 2022 02:09:37 +0530 Subject: fix: obey fullview settings on first launch & initial window size --- src/mainwindow.cpp | 4 ++-- src/settingswidget.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3