Fixed delete temp folder dialog in batch processing mode

This commit is contained in:
n00mkrad
2021-10-21 08:28:03 +02:00
parent 4dcd5e2ca0
commit eb0c2b7bc7

View File

@@ -227,7 +227,7 @@ namespace Flowframes
if (!current.stepByStep && !Config.GetBool(Config.Key.keepTempFolder))
{
if(IoUtils.GetAmountOfFiles(Path.Combine(current.tempFolder, Paths.resumeDir), true) > 0)
if(!BatchProcessing.busy && 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);