Update OptionsGeneral.cpp

This commit is contained in:
DavidXanatos 2024-09-15 13:31:35 +02:00
parent 4b16380cb9
commit 0750445028
1 changed files with 1 additions and 3 deletions

View File

@ -335,10 +335,8 @@ void COptionsWindow::LoadGeneral()
ui.chkForceProtection->setChecked(m_pBox->GetBool("ForceProtectionOnMount", false));
ui.chkUserOperation->setChecked(m_pBox->GetBool("BlockInterferenceControl", false));
ui.chkCoverBar->setChecked(m_pBox->GetBool("AllowCoverTaskbar", false));
if (ui.chkRamBox->isEnabled()) {
if (ui.chkRamBox->isEnabled())
ui.chkEncrypt->setEnabled(!ui.chkRamBox->isChecked());
ui.chkForceProtection->setEnabled(!ui.chkRamBox->isChecked());
}
ui.chkForceProtection->setEnabled(ui.chkEncrypt->isEnabled() && ui.chkEncrypt->isChecked());
CSandBoxPlus* pBoxEx = qobject_cast<CSandBoxPlus*>(m_pBox.data());