mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-27 16:17:21 -08:00
Fixed lock screen checkbox click if config's enabled
This commit is contained in:
parent
a210bd5d90
commit
bf06059627
1 changed files with 11 additions and 0 deletions
11
settings.cpp
11
settings.cpp
|
@ -53,6 +53,9 @@ settings::settings(QWidget *parent) :
|
||||||
ui->line_7->hide();
|
ui->line_7->hide();
|
||||||
ui->updateBtn->hide();
|
ui->updateBtn->hide();
|
||||||
ui->updateLabel->hide();
|
ui->updateLabel->hide();
|
||||||
|
ui->enableLockscreenCheckBox->hide();
|
||||||
|
ui->setPasscodeBtn->hide();
|
||||||
|
ui->setPasscodeLabel->hide();
|
||||||
|
|
||||||
// Settings tweaking + enabling specific features whether it's running on the provided integrated OS or Kobo firmware
|
// Settings tweaking + enabling specific features whether it's running on the provided integrated OS or Kobo firmware
|
||||||
if(checkconfig(".config/01-demo/config") == true) {
|
if(checkconfig(".config/01-demo/config") == true) {
|
||||||
|
@ -140,6 +143,11 @@ settings::settings(QWidget *parent) :
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Lock screen
|
||||||
|
if(checkconfig(".config/12-lockscreen") == true) {
|
||||||
|
ui->enableLockscreenCheckBox->click();
|
||||||
|
}
|
||||||
|
|
||||||
if(checkconfig("/opt/inkbox_genuine") == true) {
|
if(checkconfig("/opt/inkbox_genuine") == true) {
|
||||||
// Enforcing security policy if the user has not rooted the device
|
// Enforcing security policy if the user has not rooted the device
|
||||||
if(checkconfig("/external_root/opt/root/rooted") == true) {
|
if(checkconfig("/external_root/opt/root/rooted") == true) {
|
||||||
|
@ -154,6 +162,9 @@ settings::settings(QWidget *parent) :
|
||||||
ui->label_3->hide();
|
ui->label_3->hide();
|
||||||
ui->line_3->hide();
|
ui->line_3->hide();
|
||||||
}
|
}
|
||||||
|
ui->enableLockscreenCheckBox->show();
|
||||||
|
ui->setPasscodeBtn->show();
|
||||||
|
ui->setPasscodeLabel->show();
|
||||||
ui->usbmsBtn->show();
|
ui->usbmsBtn->show();
|
||||||
ui->label_5->show();
|
ui->label_5->show();
|
||||||
ui->label_6->show();
|
ui->label_6->show();
|
||||||
|
|
Loading…
Reference in a new issue