Fixed custom output dir not working for queue

This commit is contained in:
n00mkrad
2021-08-08 19:01:13 +02:00
parent 7b9d12fc23
commit c86805b865
2 changed files with 3 additions and 5 deletions

View File

@@ -153,7 +153,8 @@ namespace Flowframes.Forms
Logger.Log($"BatchForm: Dropped path: '{path}'", true);
InterpSettings current = Program.mainForm.GetCurrentSettings();
current.UpdatePaths(path, path.GetParentDir());
string outDir = (Config.GetInt("outFolderLoc") == 0) ? path.GetParentDir() : Config.Get("custOutDir").Trim();
current.UpdatePaths(path, outDir);
current.inFpsDetected = await IOUtils.GetFpsFolderOrVideo(path);
current.inFps = current.inFpsDetected;

View File

@@ -26,10 +26,7 @@ namespace Flowframes.UI
if (Config.GetBool(Config.Key.clearLogOnInput))
Logger.ClearLogBox();
if(Config.GetInt("outFolderLoc") == 0)
outputTbox.Text = inputTbox.Text.Trim().GetParentDir();
else
outputTbox.Text = Config.Get("custOutDir").Trim();
outputTbox.Text = (Config.GetInt("outFolderLoc") == 0) ? inputTbox.Text.Trim().GetParentDir() : Config.Get("custOutDir").Trim();
Program.lastInputPath = path;
Program.lastInputPathIsSsd = OSUtils.DriveIsSSD(path);