Update OptionsGeneral.cpp

Invert CopyBlockDenyWrite checkbox state for correct behavior
This commit is contained in:
offhub 2024-11-25 17:43:31 +03:00 committed by GitHub
parent 503775f646
commit 87d4e74abd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -365,7 +365,7 @@ void COptionsWindow::LoadGeneral()
ui.txtCopyLimit->setText(QString::number(iLimit > 0 ? iLimit : 80 * 1024)); ui.txtCopyLimit->setText(QString::number(iLimit > 0 ? iLimit : 80 * 1024));
ui.chkCopyPrompt->setChecked(m_pBox->GetBool("PromptForFileMigration", true)); ui.chkCopyPrompt->setChecked(m_pBox->GetBool("PromptForFileMigration", true));
ui.chkNoCopyWarn->setChecked(!m_pBox->GetBool("CopyLimitSilent", false)); ui.chkNoCopyWarn->setChecked(!m_pBox->GetBool("CopyLimitSilent", false));
ui.chkDenyWrite->setChecked(m_pBox->GetBool("CopyBlockDenyWrite", false)); ui.chkDenyWrite->setChecked(!m_pBox->GetBool("CopyBlockDenyWrite", false));
ui.chkNoCopyMsg->setChecked(m_pBox->GetBool("NotifyNoCopy", false)); ui.chkNoCopyMsg->setChecked(m_pBox->GetBool("NotifyNoCopy", false));
LoadCopyRules(); LoadCopyRules();
@ -496,7 +496,7 @@ void COptionsWindow::SaveGeneral()
WriteAdvancedCheck(ui.chkCopyPrompt, "PromptForFileMigration", "", "n"); WriteAdvancedCheck(ui.chkCopyPrompt, "PromptForFileMigration", "", "n");
WriteAdvancedCheck(ui.chkNoCopyWarn, "CopyLimitSilent", "", "y"); WriteAdvancedCheck(ui.chkNoCopyWarn, "CopyLimitSilent", "", "y");
WriteAdvancedCheck(ui.chkDenyWrite, "CopyBlockDenyWrite", "y", ""); WriteAdvancedCheck(ui.chkDenyWrite, "CopyBlockDenyWrite", "", "y");
WriteAdvancedCheck(ui.chkNoCopyMsg, "NotifyNoCopy", "y", ""); WriteAdvancedCheck(ui.chkNoCopyMsg, "NotifyNoCopy", "y", "");
if (ui.chkProtectBox->checkState() == Qt::Checked) { if (ui.chkProtectBox->checkState() == Qt::Checked) {