From fa4012a5c3c3eb6da51b746a6061d828fb681a60 Mon Sep 17 00:00:00 2001 From: Keshav Bhatt Date: Wed, 30 Mar 2022 11:43:39 +0530 Subject: fix: change lock screen password beahvior --- src/mainwindow.cpp | 2 +- src/settingswidget.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ecb4141..b9ec4f5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -173,7 +173,7 @@ void MainWindow::updateWindowTheme() { if (settings.value("windowTheme", "light").toString() == "dark") { qApp->setPalette(darkPalette); this->webEngine->setStyleSheet( - "QWebEngineView{background:rgb(17, 27, 33);}"); // whatsapp dark color + "QWebEngineView{background:rgb(17, 27, 33);}"); // whatsapp dark color } else { qApp->setPalette(lightPalette); this->webEngine->setStyleSheet( diff --git a/src/settingswidget.cpp b/src/settingswidget.cpp index 473e1a2..2e2b095 100644 --- a/src/settingswidget.cpp +++ b/src/settingswidget.cpp @@ -672,7 +672,8 @@ void SettingsWidget::on_chnageCurrentPasswordPushButton_clicked() { if (settings.value("asdfg").isValid()) { QMessageBox msgBox; msgBox.setText("You are about to change your current app lock password!" - "\n\nThis will LogOut your current session."); + "\n\nThis will LogOut your current session." + "\nYou may also require a complete restart of Application!"); msgBox.setIconPixmap( QPixmap(":/icons/information-line.png") .scaled(42, 42, Qt::KeepAspectRatio, Qt::SmoothTransformation)); @@ -687,7 +688,7 @@ void SettingsWidget::on_chnageCurrentPasswordPushButton_clicked() { msgBox.exec(); } else { - settings.setValue("lockscreen", false); + settings.setValue("lockscreen", true); showSetApplockPasswordDialog(); } } -- cgit v1.2.3