Form1 cleanup

This commit is contained in:
N00MKRAD
2021-03-24 17:33:17 +01:00
parent e59fd53de7
commit 6a45ba01a7

View File

@@ -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