File import splash, disable input file drive check by default

This commit is contained in:
N00MKRAD
2024-10-16 13:50:26 +02:00
parent 3a13e975fd
commit a521f9cfbb
5 changed files with 21 additions and 7 deletions

View File

@@ -13,6 +13,8 @@ using System.Threading.Tasks;
using System.Windows.Forms;
using Flowframes.Data;
using Flowframes.MiscUtils;
using Flowframes.Forms;
using Flowframes.Forms.Main;
namespace Flowframes.Ui
{
@@ -34,10 +36,12 @@ 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 = OsUtils.DriveIsSSD(path);
Program.lastInputPathIsSsd = Config.GetBool("checkInputFileDriveType", 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.");
@@ -70,6 +74,8 @@ namespace Flowframes.Ui
}
catch { }
Form1.CloseAllSplashForms();
if (!Cli.AutoRun)
{
Program.mainForm.Enabled = true;