From 6de8baa8847fab851574a309393c5e8f418b45aa Mon Sep 17 00:00:00 2001 From: offhub <6871698+offhub@users.noreply.github.com> Date: Sun, 16 Jun 2024 23:36:47 +0300 Subject: [PATCH] fix checkbox fixes HideNonSystemProcesses? checkbox --- SandboxiePlus/SandMan/Forms/OptionsWindow.ui | 2 +- SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui index 22544996..70e0325f 100644 --- a/SandboxiePlus/SandMan/Forms/OptionsWindow.ui +++ b/SandboxiePlus/SandMan/Forms/OptionsWindow.ui @@ -4696,7 +4696,7 @@ This is done to prevent rogue processes inside the sandbox from creating a renam - + Don't allow sandboxed processes to see processes running outside any boxes diff --git a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp index 6e788f52..70805b47 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp @@ -95,6 +95,7 @@ void COptionsWindow::CreateAdvanced() connect(ui.chkShowTriggersTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowTriggersTmpl())); connect(ui.chkHideOtherBoxes, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); + connect(ui.chkHideNonSystemProcesses, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); connect(ui.btnAddProcess, SIGNAL(clicked(bool)), this, SLOT(OnAddProcess())); connect(ui.btnDelProcess, SIGNAL(clicked(bool)), this, SLOT(OnDelProcess())); connect(ui.chkShowHiddenProcTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowHiddenProcTmpl())); @@ -255,6 +256,7 @@ void COptionsWindow::LoadAdvanced() // ui.chkHideOtherBoxes->setChecked(m_pBox->GetBool("HideOtherBoxes", true)); + ui.chkHideNonSystemProcesses->setChecked(m_pBox->GetBool("HideNonSystemProcesses", false)); ui.treeHideProc->clear(); foreach(const QString& Value, m_pBox->GetTextList("HideHostProcess", m_Template)) @@ -497,6 +499,7 @@ void COptionsWindow::SaveAdvanced() WriteAdvancedCheck(ui.chkHideOtherBoxes, "HideOtherBoxes", "", "n"); + WriteAdvancedCheck(ui.chkHideNonSystemProcesses, "HideNonSystemProcesses", "y", ""); QStringList HideProcesses; for (int i = 0; i < ui.treeHideProc->topLevelItemCount(); i++)