Don't show "Interpolation has been paused" multiple times while paused

This commit is contained in:
N00MKRAD
2021-06-06 14:51:19 +02:00
parent 3a4ec732e1
commit 15d6a16e52

View File

@@ -98,9 +98,14 @@ namespace Flowframes
}
else
{
bool showMsg = !AiProcessSuspend.aiProcFrozen;
AiProcessSuspend.SuspendIfRunning();
MessageBox.Show($"Interpolation has been paused because you are running out of disk space on '{drivePath}/' ({spaceGb} GB)!\n\n" +
if (showMsg)
{
MessageBox.Show($"Interpolation has been paused because you are running out of disk space on '{drivePath}/' ({spaceGb} GB)!\n\n" +
$"Please either clear up some disk space or cancel the interpolation.", "Warning");
}
}
}
}