fix checkbox

fixes HideNonSystemProcesses? checkbox
This commit is contained in:
offhub 2024-06-16 23:36:47 +03:00
parent 4aea811b47
commit 6de8baa884
No known key found for this signature in database
GPG Key ID: 7B12A8941851DA59
2 changed files with 4 additions and 1 deletions

View File

@ -4696,7 +4696,7 @@ This is done to prevent rogue processes inside the sandbox from creating a renam
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QCheckBox" name="chkHideHostProcesses"> <widget class="QCheckBox" name="chkHideNonSystemProcesses">
<property name="text"> <property name="text">
<string>Don't allow sandboxed processes to see processes running outside any boxes</string> <string>Don't allow sandboxed processes to see processes running outside any boxes</string>
</property> </property>

View File

@ -95,6 +95,7 @@ void COptionsWindow::CreateAdvanced()
connect(ui.chkShowTriggersTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowTriggersTmpl())); connect(ui.chkShowTriggersTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowTriggersTmpl()));
connect(ui.chkHideOtherBoxes, SIGNAL(clicked(bool)), this, SLOT(OnAdvancedChanged())); 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.btnAddProcess, SIGNAL(clicked(bool)), this, SLOT(OnAddProcess()));
connect(ui.btnDelProcess, SIGNAL(clicked(bool)), this, SLOT(OnDelProcess())); connect(ui.btnDelProcess, SIGNAL(clicked(bool)), this, SLOT(OnDelProcess()));
connect(ui.chkShowHiddenProcTmpl, SIGNAL(clicked(bool)), this, SLOT(OnShowHiddenProcTmpl())); 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.chkHideOtherBoxes->setChecked(m_pBox->GetBool("HideOtherBoxes", true));
ui.chkHideNonSystemProcesses->setChecked(m_pBox->GetBool("HideNonSystemProcesses", false));
ui.treeHideProc->clear(); ui.treeHideProc->clear();
foreach(const QString& Value, m_pBox->GetTextList("HideHostProcess", m_Template)) foreach(const QString& Value, m_pBox->GetTextList("HideHostProcess", m_Template))
@ -497,6 +499,7 @@ void COptionsWindow::SaveAdvanced()
WriteAdvancedCheck(ui.chkHideOtherBoxes, "HideOtherBoxes", "", "n"); WriteAdvancedCheck(ui.chkHideOtherBoxes, "HideOtherBoxes", "", "n");
WriteAdvancedCheck(ui.chkHideNonSystemProcesses, "HideNonSystemProcesses", "y", "");
QStringList HideProcesses; QStringList HideProcesses;
for (int i = 0; i < ui.treeHideProc->topLevelItemCount(); i++) for (int i = 0; i < ui.treeHideProc->topLevelItemCount(); i++)