Skip to content

Commit

Permalink
Merge pull request #5 from love-code-yeyixiao/AutoLock
Browse files Browse the repository at this point in the history
Fix.
  • Loading branch information
love-code-yeyixiao authored Mar 17, 2024
2 parents cea5c81 + 673fc15 commit fb1ef3a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
}

Expand All @@ -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();
}

0 comments on commit fb1ef3a

Please sign in to comment.