From 87c35d68534b5d3fa5fae13e52d3a744a46eaacb Mon Sep 17 00:00:00 2001 From: love-code-yeyixiao <188240888@qq.com> Date: Sun, 17 Mar 2024 19:49:22 +0800 Subject: [PATCH] rollback --- SandboxiePlus/SandMan/Forms/OptionsWindow.ui | 283 +++++++++--------- .../SandMan/Windows/OptionsAdvanced.cpp | 8 +- 2 files changed, 142 insertions(+), 149 deletions(-) diff --git a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui index 63d0a3d5..a04e7292 100644 --- a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui +++ b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui @@ -285,58 +285,16 @@ File Options - - - - - 75 - true - true - + + + + + 20 + 16777215 + - Box Structure - - - - - - - The box structure can only be changed when the sandbox is empty - - - - - - - Virtualization scheme - - - - - - - - - - Separate user folders - - - false - - - - - - - Use volume serial numbers for drives, like: \drive\C~1234-ABCD - - - - - - - Store the sandbox content in a Ram Disk + @@ -347,12 +305,18 @@ - - - - Set Password + + + + Qt::Horizontal - + + + 410 + 13 + + + @@ -367,6 +331,91 @@ + + + + Warn when an application opens a harddrive handle + + + + + + + Set Password + + + + + + + Virtualization scheme + + + + + + + + + + Qt::Vertical + + + + 20 + 52 + + + + + + + + + 75 + true + true + + + + Disk/File access + + + + + + + Allow elevated sandboxed applications to read the harddrive + + + + + + + The box structure can only be changed when the sandbox is empty + + + + + + + Partially checked means prevent box removal but not content deletion. + + + Protect this sandbox from deletion or emptying + + + true + + + + + + + Auto delete content when last sandboxed process terminates + + + @@ -374,6 +423,37 @@ + + + + + 75 + true + true + + + + Box Structure + + + + + + + Separate user folders + + + false + + + + + + + Store the sandbox content in a Ram Disk + + + @@ -388,100 +468,13 @@ - - + + - Auto delete content when last sandboxed process terminates + Use volume serial numbers for drives, like: \drive\C~1234-ABCD - - - - Partially checked means prevent box removal but not content deletion. - - - Protect this sandbox from deletion or emptying - - - true - - - - - - - Force lock the encrypted sandbox when all processes in the sandbox terminate. - - - - - - - - 75 - true - true - - - - Disk/File access - - - - - - - Allow elevated sandboxed applications to read the harddrive - - - - - - - - 20 - 16777215 - - - - - - - - - - - Warn when an application opens a harddrive handle - - - - - - - Qt::Vertical - - - - 20 - 52 - - - - - - - - Qt::Horizontal - - - - 410 - 13 - - - - diff --git a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp index 21f05a66..58c4ac4e 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp @@ -106,7 +106,7 @@ void COptionsWindow::CreateAdvanced() connect(ui.chkLessConfidential, SIGNAL(clicked(bool)), this, SLOT(OnLessConfidentialChanged())); connect(ui.chkProtectWindow, SIGNAL(clicked(bool)), this, SLOT(OnProtectChanged())); connect(ui.chkBlockCapture, SIGNAL(clicked(bool)), this, SLOT(OnCaptureChanged())); - connect(ui.chkLockWhenClose, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); + //connect(ui.chkLockWhenClose, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); connect(ui.chkNotifyProtect, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); connect(ui.treeInjectDll, SIGNAL(itemChanged(QTreeWidgetItem *, int)), this, SLOT(OnToggleInjectDll(QTreeWidgetItem *, int))); @@ -270,10 +270,10 @@ void COptionsWindow::LoadAdvanced() ui.chkBlockCapture->setChecked(m_pBox->GetBool("IsBlockCapture")&& QString::compare(str, "*") != 0); ui.chkBlockCapture->setCheckable(QString::compare(str, "*") != 0); - ui.chkLockWhenClose->setChecked(m_pBox->GetBool("LockWhenClose", false)); + /*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(); if (Users.count() > 1) @@ -478,7 +478,7 @@ void COptionsWindow::SaveAdvanced() WriteAdvancedCheck(ui.chkProtectWindow, "IsProtectScreen", "y", "n"); WriteAdvancedCheck(ui.chkBlockCapture, "IsBlockCapture", "y", "n"); - WriteAdvancedCheck(ui.chkLockWhenClose, "LockWhenClose", "y", "n"); + //WriteAdvancedCheck(ui.chkLockWhenClose, "LockWhenClose", "y", "n"); QStringList Users; for (int i = 0; i < ui.lstUsers->count(); i++)