Skip to content

Commit

Permalink
UPdated fix for #337
Browse files Browse the repository at this point in the history
  • Loading branch information
SirSparkles committed Feb 28, 2018
1 parent b635ed4 commit 94f0975
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions TVRename#/App/ApplicationBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

}

Expand All @@ -33,15 +33,18 @@ protected override void OnCreateSplashScreen()
/// </summary>
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);

// Update RegVersion to bring the WebBrowser up to speed
RegistryHelper.UpdateBrowserEmulationVersion();

CommandLineArgs clargs = new CommandLineArgs(this.CommandLineArgs);

bool recover = false;
string recoverText = string.Empty;

Expand Down

0 comments on commit 94f0975

Please sign in to comment.