diff --git a/Code/Form1.cs b/Code/Form1.cs index 231a467..d68da38 100644 --- a/Code/Form1.cs +++ b/Code/Form1.cs @@ -253,7 +253,6 @@ namespace Flowframes public ModelCollection.ModelInfo GetModel(AI currentAi) { - //return aiModel.Text.Split('-')[0].Remove(" ").Remove("."); return AiModels.GetModels(currentAi).models[aiModel.SelectedIndex]; } diff --git a/Code/IO/ModelDownloader.cs b/Code/IO/ModelDownloader.cs index 8786a23..f48b353 100644 --- a/Code/IO/ModelDownloader.cs +++ b/Code/IO/ModelDownloader.cs @@ -153,9 +153,6 @@ namespace Flowframes.IO public static bool AreFilesValid (string ai, string model) { - if (Debugger.IsAttached) // Disable MD5 check in dev environment - return true; - string mdlDir = GetLocalPath(ai, model); if (!Directory.Exists(mdlDir)) @@ -164,6 +161,9 @@ namespace Flowframes.IO return false; } + if (Debugger.IsAttached) // Disable MD5 check in dev environment + return true; + string md5FilePath = Path.Combine(mdlDir, "md5.txt"); if (!File.Exists(md5FilePath) || IOUtils.GetFilesize(md5FilePath) < 32) diff --git a/Code/Main/CreateVideo.cs b/Code/Main/CreateVideo.cs index 8a91213..4738ccf 100644 --- a/Code/Main/CreateVideo.cs +++ b/Code/Main/CreateVideo.cs @@ -192,7 +192,7 @@ namespace Flowframes.Main await MergeChunks(tempConcatFile, outPath, isBackup); if (!isBackup) - IOUtils.DeleteIfExists(IOUtils.FilenameSuffix(outPath, Paths.backupSuffix)); + Task.Run(async () => { await IOUtils.TryDeleteIfExistsAsync(IOUtils.FilenameSuffix(outPath, Paths.backupSuffix)); }); } } catch (Exception e)