From 6a45ba01a7725e42201fe5df3d8601cf775db3a1 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Wed, 24 Mar 2021 17:33:17 +0100 Subject: [PATCH] Form1 cleanup --- Code/Form1.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Code/Form1.cs b/Code/Form1.cs index abf5bcc..f4aebba 100644 --- a/Code/Form1.cs +++ b/Code/Form1.cs @@ -58,26 +58,22 @@ namespace Flowframes Text = $"Flowframes"; } - private void Form1_Shown(object sender, EventArgs e) + private async void Form1_Shown(object sender, EventArgs e) { - Checks(); - if (Debugger.IsAttached) { Logger.Log("Debugger is attached - Flowframes seems to be running within VS."); scnDetectTestBtn.Visible = true; } - // string path = @"F:\AI\Testing\RIFE\temp\ScnDetectTests\blendTest\"; - // string[] blendImgs = new string[] { path + "1-blend1.png", path + "1-blend2.png", path + "1-blend3.png", path + "1-blend4.png", path + "1-blend5.png", path + "1-blend6.png", path + "1-blend7.png" }; - // Magick.Blend.BlendImages(path + "1.png", path + "2.png", blendImgs); + await Checks(); } async Task Checks() { try { - await Task.Delay(10); + await Task.Delay(100); Text = $"Flowframes " + Updater.GetInstalledVerStr(); await Updater.UpdateModelList(); // Update AI model list await Updater.AsyncUpdateCheck(); // Check for Flowframes updates