This commit is contained in:
DavidXanatos 2024-03-23 12:31:20 +01:00
parent 2cb4a9cab5
commit 8b7df9bdc0
2 changed files with 2 additions and 0 deletions

View File

@ -1716,6 +1716,7 @@ SB_STATUS CSandMan::ImBoxMount(const CSandBoxPtr& pBox, bool bAutoUnmount)
} }
CBoxImageWindow window(CBoxImageWindow::eMount, this); CBoxImageWindow window(CBoxImageWindow::eMount, this);
window.SetAutoUnMount(bAutoUnmount);
if (theGUI->SafeExec(&window) != 1) if (theGUI->SafeExec(&window) != 1)
return SB_ERR(SB_Canceled); return SB_ERR(SB_Canceled);
return pBox->ImBoxMount(window.GetPassword(), window.UseProtection(), window.AutoUnMount()); return pBox->ImBoxMount(window.GetPassword(), window.UseProtection(), window.AutoUnMount());

View File

@ -25,6 +25,7 @@ public:
void SetImageSize(quint64 uSize) const { return ui.txtImageSize->setText(QString::number(uSize / 1024)); } void SetImageSize(quint64 uSize) const { return ui.txtImageSize->setText(QString::number(uSize / 1024)); }
quint64 GetImageSize() const { return ui.txtImageSize->text().toULongLong() * 1024; } quint64 GetImageSize() const { return ui.txtImageSize->text().toULongLong() * 1024; }
bool UseProtection() const { return ui.chkProtect->isChecked(); } bool UseProtection() const { return ui.chkProtect->isChecked(); }
void SetAutoUnMount(bool bSet) { ui.chkAutoLock->setChecked(bSet); }
bool AutoUnMount() const { return ui.chkAutoLock->isChecked(); } bool AutoUnMount() const { return ui.chkAutoLock->isChecked(); }
private slots: private slots: