From 8b7df9bdc0540735f426a621abb01fedde07eb04 Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Sat, 23 Mar 2024 12:31:20 +0100 Subject: [PATCH] 1.13.4 --- SandboxiePlus/SandMan/SandMan.cpp | 1 + SandboxiePlus/SandMan/Windows/BoxImageWindow.h | 1 + 2 files changed, 2 insertions(+) diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index 3aa6ab10a2..2c11443c68 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -1716,6 +1716,7 @@ SB_STATUS CSandMan::ImBoxMount(const CSandBoxPtr& pBox, bool bAutoUnmount) } CBoxImageWindow window(CBoxImageWindow::eMount, this); + window.SetAutoUnMount(bAutoUnmount); if (theGUI->SafeExec(&window) != 1) return SB_ERR(SB_Canceled); return pBox->ImBoxMount(window.GetPassword(), window.UseProtection(), window.AutoUnMount()); diff --git a/SandboxiePlus/SandMan/Windows/BoxImageWindow.h b/SandboxiePlus/SandMan/Windows/BoxImageWindow.h index 341d415eb9..2531e22605 100644 --- a/SandboxiePlus/SandMan/Windows/BoxImageWindow.h +++ b/SandboxiePlus/SandMan/Windows/BoxImageWindow.h @@ -25,6 +25,7 @@ class CBoxImageWindow : public QDialog void SetImageSize(quint64 uSize) const { return ui.txtImageSize->setText(QString::number(uSize / 1024)); } quint64 GetImageSize() const { return ui.txtImageSize->text().toULongLong() * 1024; } bool UseProtection() const { return ui.chkProtect->isChecked(); } + void SetAutoUnMount(bool bSet) { ui.chkAutoLock->setChecked(bSet); } bool AutoUnMount() const { return ui.chkAutoLock->isChecked(); } private slots: