Actually set the stepByStep flag for current InterpSettings

This commit is contained in:
N00MKRAD
2021-02-01 21:54:30 +01:00
parent 985ce45f1d
commit f11611f32e
4 changed files with 6 additions and 4 deletions

View File

@@ -431,8 +431,8 @@ namespace Flowframes
stepSelector.Items.AddRange(new string[] { "1) Import/Extract Frames", "2) Run Interpolation", "3) Export", "4) Cleanup & Reset" });
stepSelector.SelectedIndex = 0;
}
bool stepByStep = Config.GetInt("processingMode") == 1;
runBtn.Visible = !stepByStep && !Program.busy;
runBtn.Visible = Config.GetInt("processingMode") == 1 || Program.busy;
}
private async void runStepBtn_Click(object sender, EventArgs e)

View File

@@ -40,6 +40,7 @@ namespace Flowframes
if (!Utils.CheckPathValid(current.inPath)) return; // Check if input path/file is valid
Utils.PathAsciiCheck(current.inPath, current.outPath);
currentInputFrameCount = await Utils.GetInputFrameCountAsync(current.inPath);
current.stepByStep = false;
Program.mainForm.SetStatus("Starting...");
Program.mainForm.SetWorking(true);
await GetFrames();
@@ -197,7 +198,7 @@ namespace Flowframes
canceled = true;
Program.mainForm.SetStatus("Canceled.");
Program.mainForm.SetProgress(0);
if (Config.GetInt("processingMode") == 0 && !Config.GetBool("keepTempFolder"))
if (!current.stepByStep && !Config.GetBool("keepTempFolder"))
{
if(IOUtils.GetAmountOfFiles(Path.Combine(current.tempFolder, Paths.resumeDir), true) > 0)
{

View File

@@ -24,6 +24,7 @@ namespace Flowframes.Main
Program.mainForm.SetWorking(true);
current = Program.mainForm.GetCurrentSettings();
current.RefreshAlpha();
current.stepByStep = false;
if (!InterpolateUtils.InputIsValid(current.inPath, current.outPath, current.outFps, current.interpFactor, current.outMode)) return; // General input checks

View File

@@ -61,7 +61,7 @@ namespace Flowframes.UI
static void CheckExistingFolder (string inpath, string outpath)
{
if (Config.GetInt("processingMode") == 0) return;
if (!Interpolate.current.stepByStep) return;
string tmpFolder = InterpolateUtils.GetTempFolderLoc(inpath, outpath);
if (Directory.Exists(tmpFolder))
{