This commit is contained in:
DavidXanatos 2024-09-15 13:30:11 +02:00
parent 947548999f
commit 4b16380cb9
3 changed files with 18 additions and 0 deletions

View File

@ -9,6 +9,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed ### Fixed
- fixed Exported encrypted archive files cannot be unpacked by Sandboxie [#4229](https://github.com/sandboxie-plus/Sandboxie/issues/4229) - fixed Exported encrypted archive files cannot be unpacked by Sandboxie [#4229](https://github.com/sandboxie-plus/Sandboxie/issues/4229)
### Added
- Added a couple alternative default sandbox paths to the box wizard:
- \??\%SystemDrive%\Sandbox\%USER%\%SANDBOX%
- \??\%SystemDrive%\Sandbox\%SANDBOX%
- \??\%SystemDrive%\Users\%USER%\Sandbox\%SANDBOX%

View File

@ -339,6 +339,8 @@ void COptionsWindow::LoadGeneral()
ui.chkEncrypt->setEnabled(!ui.chkRamBox->isChecked()); ui.chkEncrypt->setEnabled(!ui.chkRamBox->isChecked());
ui.chkForceProtection->setEnabled(!ui.chkRamBox->isChecked()); ui.chkForceProtection->setEnabled(!ui.chkRamBox->isChecked());
} }
ui.chkForceProtection->setEnabled(ui.chkEncrypt->isEnabled() && ui.chkEncrypt->isChecked());
CSandBoxPlus* pBoxEx = qobject_cast<CSandBoxPlus*>(m_pBox.data()); CSandBoxPlus* pBoxEx = qobject_cast<CSandBoxPlus*>(m_pBox.data());
if (pBoxEx && QFile::exists(pBoxEx->GetBoxImagePath())) if (pBoxEx && QFile::exists(pBoxEx->GetBoxImagePath()))
{ {
@ -1147,6 +1149,8 @@ void COptionsWindow::OnDiskChanged()
ui.chkForceProtection->setEnabled(ui.chkEncrypt->isChecked()); ui.chkForceProtection->setEnabled(ui.chkEncrypt->isChecked());
} }
ui.chkForceProtection->setEnabled(ui.chkEncrypt->isEnabled() && ui.chkEncrypt->isChecked());
OnGeneralChanged(); OnGeneralChanged();
} }

View File

@ -685,6 +685,14 @@ void CFilesPage::initializePage()
m_pBoxLocation->clear(); m_pBoxLocation->clear();
QString Location = theAPI->GetGlobalSettings()->GetText("FileRootPath", "\\??\\%SystemDrive%\\Sandbox\\%USER%\\%SANDBOX%"); QString Location = theAPI->GetGlobalSettings()->GetText("FileRootPath", "\\??\\%SystemDrive%\\Sandbox\\%USER%\\%SANDBOX%");
m_pBoxLocation->addItem(Location/*.replace("%SANDBOX%", field("boxName").toString())*/); m_pBoxLocation->addItem(Location/*.replace("%SANDBOX%", field("boxName").toString())*/);
QStringList StdLocations = QStringList()
<< "\\??\\%SystemDrive%\\Sandbox\\%USER%\\%SANDBOX%"
<< "\\??\\%SystemDrive%\\Sandbox\\%SANDBOX%"
<< "\\??\\%SystemDrive%\\Users\\%USER%\\Sandbox\\%SANDBOX%";
foreach(auto StdLocation, StdLocations) {
if (StdLocation != Location)
m_pBoxLocation->addItem(StdLocation);
}
} }
bool CFilesPage::validatePage() bool CFilesPage::validatePage()