Skip to content

Commit

Permalink
Import splash window, call BringToFront after import
Browse files Browse the repository at this point in the history
  • Loading branch information
n00mkrad committed Oct 16, 2024
1 parent af97f84 commit 1f8541f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CodeLegacy/Ui/MainUiFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class MainUiFunctions
{
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();
Expand All @@ -36,12 +36,10 @@ public static async Task InitInput (TextBox outputTbox, TextBox inputTbox, TextB
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.");
Expand Down Expand Up @@ -79,6 +77,7 @@ public static async Task InitInput (TextBox outputTbox, TextBox inputTbox, TextB
if (!Cli.AutoRun)
{
Program.mainForm.Enabled = true;
Program.mainForm.BringToFront();
}
}

Expand Down

0 comments on commit 1f8541f

Please sign in to comment.