From 94f09758068f716c893e7f4fd7fdbd9855067beb Mon Sep 17 00:00:00 2001 From: Mark Summerville Date: Wed, 28 Feb 2018 08:23:12 +0800 Subject: [PATCH] UPdated fix for #337 --- TVRename#/App/ApplicationBase.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TVRename#/App/ApplicationBase.cs b/TVRename#/App/ApplicationBase.cs index b420136fb..314cd019e 100644 --- a/TVRename#/App/ApplicationBase.cs +++ b/TVRename#/App/ApplicationBase.cs @@ -23,7 +23,7 @@ protected override void OnCreateSplashScreen() this.SplashScreen = new TVRenameSplash(); CommandLineArgs clargs = new CommandLineArgs(this.CommandLineArgs); - if ((!clargs.Unattended) && (!clargs.Hide)) this.SplashScreen.Enabled = false; + if ((clargs.Unattended) || (clargs.Hide)) this.SplashScreen.Visible = false; } @@ -33,6 +33,11 @@ protected override void OnCreateSplashScreen() /// protected override void OnCreateMainForm() { + CommandLineArgs clargs = new CommandLineArgs(this.CommandLineArgs); + if ((clargs.Unattended) || (clargs.Hide)) + this.SplashScreen.SafeInvoke( + () => ((TVRenameSplash)this.SplashScreen).Visible = false,true); + // Update splash screen this.SplashScreen.SafeInvoke( () => ((TVRenameSplash) this.SplashScreen).UpdateStatus("Initializing"), true); @@ -40,8 +45,6 @@ protected override void OnCreateMainForm() // Update RegVersion to bring the WebBrowser up to speed RegistryHelper.UpdateBrowserEmulationVersion(); - CommandLineArgs clargs = new CommandLineArgs(this.CommandLineArgs); - bool recover = false; string recoverText = string.Empty;