diff --git a/SandboxiePlus/SandMan/SandMan.cpp b/SandboxiePlus/SandMan/SandMan.cpp index 8da08bff..b50ca10c 100644 --- a/SandboxiePlus/SandMan/SandMan.cpp +++ b/SandboxiePlus/SandMan/SandMan.cpp @@ -2258,6 +2258,13 @@ void CSandMan::OnStartMenuChanged() void CSandMan::OnBoxClosed(const CSandBoxPtr& pBox) { + foreach(const QString & Value, pBox->GetTextList("OnBoxTerminate", true, false, true)) { + QString Value2 = pBox->Expand(Value); + CSbieProgressPtr pProgress = CSbieUtils::RunCommand(Value2, true); + if (!pProgress.isNull()) { + AddAsyncOp(pProgress, true, tr("Executing OnBoxTerminate: %1").arg(Value2)); + } + } if (!pBox->GetBool("NeverDelete", false)) { if (pBox->GetBool("AutoDelete", false)) @@ -4452,4 +4459,4 @@ void InitCertSlot() g_MailRun = true; g_MailThread = CreateThread(NULL, 0, MailThreadFunc, NULL, 0, NULL); -} \ No newline at end of file +} diff --git a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp index 6e3a4514..af225cda 100644 --- a/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp +++ b/SandboxiePlus/SandMan/Windows/OptionsAdvanced.cpp @@ -430,7 +430,7 @@ void COptionsWindow::SaveAdvanced() WriteTextList("AutoExec", AutoExec); WriteTextList("OnFileRecovery", RecoveryCheck); WriteTextList("OnBoxDelete", DeleteCommand); - WriteTextList("OnBoxTerimate", TerminateCommand); + WriteTextList("OnBoxTerminate", TerminateCommand); //