From 536190c9378771e865a77d3efd87ec43c08688ef Mon Sep 17 00:00:00 2001 From: keshavbhatt Date: Mon, 26 Apr 2021 04:00:59 +0530 Subject: allow app locking even if its not enabled in settings --- src/mainwindow.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 18dc80c..9032d15 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -210,15 +210,16 @@ void MainWindow::lockApp() if(lockWidget != nullptr && lockWidget->isLocked) return; - if(settings.value("asdfg").isValid() && settings.value("lockscreen").toBool()==false){ - QMessageBox::critical(this,QApplication::applicationName()+"| Error", - "Unable to lock App, Enable AppLock in settings First."); - this->show(); - return; - } +// if(settings.value("asdfg").isValid() && settings.value("lockscreen").toBool()==false){ +// QMessageBox::critical(this,QApplication::applicationName()+"| Error", +// "Unable to lock App, Enable AppLock in settings First."); +// this->show(); +// return; +// } if(settings.value("asdfg").isValid()){ init_lock(); + lockWidget->lock_app(); }else{ QMessageBox msgBox; msgBox.setText("App lock is not configured."); -- cgit v1.2.3