From f2451e217411856055b0334589e2c24daaf55aea Mon Sep 17 00:00:00 2001 From: n00mkrad Date: Thu, 30 Sep 2021 19:48:38 +0200 Subject: [PATCH] Re-enable dialog to keep temp files after canceling --- Code/Main/Interpolate.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/Main/Interpolate.cs b/Code/Main/Interpolate.cs index 63412b9..dec9c28 100644 --- a/Code/Main/Interpolate.cs +++ b/Code/Main/Interpolate.cs @@ -227,9 +227,10 @@ namespace Flowframes if (!current.stepByStep && !Config.GetBool(Config.Key.keepTempFolder)) { - if(false /* IOUtils.GetAmountOfFiles(Path.Combine(current.tempFolder, Paths.resumeDir), true) > 0 */) // TODO: Uncomment for 1.23 + if(IoUtils.GetAmountOfFiles(Path.Combine(current.tempFolder, Paths.resumeDir), true) > 0) { DialogResult dialogResult = MessageBox.Show($"Delete the temp folder (Yes) or keep it for resuming later (No)?", "Delete temporary files?", MessageBoxButtons.YesNo); + if (dialogResult == DialogResult.Yes) Task.Run(async () => { await IoUtils.TryDeleteIfExistsAsync(current.tempFolder); }); }