Import splash window, call BringToFront after import

This commit is contained in:
N00MKRAD
2024-10-16 20:15:04 +02:00
parent af97f847ab
commit 1f8541f69e

View File

@@ -22,10 +22,10 @@ namespace Flowframes.Ui
{
public static async Task InitInput (TextBox outputTbox, TextBox inputTbox, TextBox fpsInTbox, bool start = false)
{
Program.mainForm.Enabled = false;
try
{
var importSplash = new SplashForm("Importing...", topMost: false);
Program.mainForm.Enabled = false;
Program.mainForm.SetTab(Program.mainForm.interpOptsTab.Name);
Program.mainForm.ResetInputInfo();
string path = inputTbox.Text.Trim();
@@ -36,12 +36,10 @@ namespace Flowframes.Ui
if (Config.GetBool(Config.Key.clearLogOnInput))
Logger.ClearLogBox();
var importSplash = new SplashForm("Importing...", topMost: false);
SetOutPath(outputTbox, inputTbox.Text.Trim().GetParentDir());
Program.lastInputPath = path;
Program.lastInputPathIsSsd = Config.GetBool("checkInputFileDriveType", false) && OsUtils.DriveIsSSD(path);
Program.lastInputPathIsSsd = Config.GetBool("checkInputFileDriveType", false) == false || OsUtils.DriveIsSSD(path);
if (!Program.lastInputPathIsSsd)
Logger.Log("Your file seems to be on an HDD or USB device. It is recommended to interpolate videos on an SSD drive for best performance.");
@@ -79,6 +77,7 @@ namespace Flowframes.Ui
if (!Cli.AutoRun)
{
Program.mainForm.Enabled = true;
Program.mainForm.BringToFront();
}
}