From d0fb3fcf13eaf800f9c810cc0c64d01346c30e87 Mon Sep 17 00:00:00 2001 From: N00MKRAD Date: Thu, 28 Jan 2021 20:04:08 +0100 Subject: [PATCH] Reset input info on new file --- Code/Form1.cs | 7 +++++++ Code/UI/MainUiFunctions.cs | 1 + 2 files changed, 8 insertions(+) diff --git a/Code/Form1.cs b/Code/Form1.cs index 1e1a95b..4a5dd5b 100644 --- a/Code/Form1.cs +++ b/Code/Form1.cs @@ -127,6 +127,13 @@ namespace Flowframes inputInfo.Text = str; } + public void ResetInputInfo () + { + currInRes = new Size(); + currInFps = 0; + currInFrames = 0; + } + void InitAis() { foreach (AI ai in Networks.networks) diff --git a/Code/UI/MainUiFunctions.cs b/Code/UI/MainUiFunctions.cs index ee4b0a3..27848ba 100644 --- a/Code/UI/MainUiFunctions.cs +++ b/Code/UI/MainUiFunctions.cs @@ -18,6 +18,7 @@ namespace Flowframes.UI public static async Task InitInput (TextBox outputTbox, TextBox inputTbox, TextBox fpsInTbox) { Program.mainForm.SetTab("interpolate"); + Program.mainForm.ResetInputInfo(); if (Config.GetBool("clearLogOnInput")) Logger.ClearLogBox();