Merge pull request #5 from love-code-yeyixiao/AutoLock

Fix.
This commit is contained in:
爱编程的叶一笑 2024-03-17 15:19:27 +08:00 committed by GitHub
commit fb1ef3ad7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 2 deletions

View File

@ -272,6 +272,7 @@ void COptionsWindow::LoadAdvanced()
ui.chkLockWhenClose->setChecked(m_pBox->GetBool("LockWhenClose", false));
ui.chkLockWhenClose->setCheckable(m_pBox->GetBool("UseFileImage", false));
ui.chkLockWhenClose->setEnabled(m_pBox->GetBool("UseFileImage", false));
QStringList Users = m_pBox->GetText("Enabled").split(",");
ui.lstUsers->clear();
@ -1252,8 +1253,12 @@ void COptionsWindow::OnCaptureChanged()
if (ui.chkBlockCapture->checkState()) {
ui.chkProtectWindow->setChecked(FALSE);
ui.chkProtectWindow->setCheckable(FALSE);
} else
ui.chkProtectWindow->setEnabled(FALSE);
}
else {
ui.chkProtectWindow->setCheckable(TRUE);
ui.chkProtectWindow->setEnabled(TRUE);
}
OnAdvancedChanged();
}
@ -1262,7 +1267,11 @@ void COptionsWindow::OnProtectChanged()
if (ui.chkProtectWindow->checkState()) {
ui.chkBlockCapture->setChecked(FALSE);
ui.chkBlockCapture->setCheckable(FALSE);
} else
ui.chkBlockCapture->setEnabled(FALSE);
}
else {
ui.chkBlockCapture->setCheckable(TRUE);
ui.chkBlockCapture->setEnabled(TRUE);
}
OnAdvancedChanged();
}