From a28ffe0e0b239def2a3876339db40bd69b33e80e Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sat, 8 Jun 2024 19:40:28 +0800 Subject: [PATCH] UI --- SandboxiePlus/SandMan/Forms/OptionsWindow.ui | 15 +++++++++++---- SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp | 8 ++++++++ 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui index fdd5988e..e2ba78ce 100644 --- a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui +++ b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui @@ -672,7 +672,7 @@ Restrictions - + @@ -717,7 +717,7 @@ - + @@ -864,7 +864,14 @@ - + + + + Allow sandboxed windows to cover taskbar + + + + This feature does not block all means of obtaining a screen capture, only some common ones. @@ -874,7 +881,7 @@ - + Qt::Vertical diff --git a/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp b/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp index 00681106..09f1ce6d 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsGeneral.cpp @@ -192,6 +192,7 @@ void COptionsWindow::CreateGeneral() connect(ui.chkEncrypt, SIGNAL(clicked(bool)), this, SLOT(OnDiskChanged())); connect(ui.chkForceProtection, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); connect(ui.chkUserOperation, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); + connect(ui.chkCoverBar, SIGNAL(clicked(bool)), this, SLOT(OnGeneralChanged())); connect(ui.btnPassword, SIGNAL(clicked(bool)), this, SLOT(OnSetPassword())); bool bImDiskReady = theGUI->IsImDiskReady(); @@ -283,8 +284,11 @@ void COptionsWindow::LoadGeneral() ui.chkPrintToFile->setChecked(m_pBox->GetBool("AllowSpoolerPrintToFile", false)); ui.lineSingleMemory->setText(m_pBox->GetText("ProcessMemoryLimit", "")); + ui.lineSingleMemory->setEnabled(true); ui.lineTotalMemory->setText(m_pBox->GetText("TotalMemoryLimit", "")); + ui.lineTotalMemory->setEnabled(true); ui.lineTotalNumber->setText(m_pBox->GetText("TotalNumberLimit", "")); + ui.lineTotalNumber->setEnabled(true); //ui.chkOpenProtectedStorage->setChecked(m_pBox->GetBool("OpenProtectedStorage", false)); ui.chkOpenProtectedStorage->setChecked(m_BoxTemplates.contains("OpenProtectedStorage")); @@ -338,6 +342,7 @@ void COptionsWindow::LoadGeneral() ui.chkEncrypt->setChecked(m_pBox->GetBool("UseFileImage", false)); 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()) { ui.chkEncrypt->setEnabled(!ui.chkRamBox->isChecked()); ui.chkForceProtection->setEnabled(!ui.chkRamBox->isChecked()); @@ -441,6 +446,7 @@ void COptionsWindow::SaveGeneral() WriteAdvancedCheck(ui.chkProtectPower, "BlockInterferePower", "y", ""); WriteAdvancedCheck(ui.chkForceProtection, "ForceProtectionOnMount", "y", ""); WriteAdvancedCheck(ui.chkUserOperation, "BlockInterferenceControl", "y", ""); + WriteAdvancedCheck(ui.chkCoverBar, "AllowCoverTaskbar", "y", ""); WriteAdvancedCheck(ui.chkVmReadNotify, "NotifyProcessAccessDenied", "y", ""); //WriteAdvancedCheck(ui.chkOpenSmartCard, "OpenSmartCard", "", "n"); //WriteAdvancedCheck(ui.chkOpenBluetooth, "OpenBluetooth", "y", ""); @@ -814,6 +820,8 @@ void COptionsWindow::OnGeneralChanged() ui.lineTotalMemory->setEnabled(ui.chkAddToJob->isChecked()); ui.lineTotalNumber->setEnabled(ui.chkAddToJob->isChecked()); + ui.chkCoverBar->setEnabled(ui.chkUserOperation->isChecked()); + ui.chkOpenCredentials->setEnabled(!ui.chkOpenProtectedStorage->isChecked()); if (!ui.chkOpenCredentials->isEnabled()) ui.chkOpenCredentials->setChecked(true);