Quellcode durchsuchen

Update MainStartup.cs

Hide the start up splash screen if nosplash is given as a command line parameter.
MrAnks vor 10 Jahren
Ursprung
Commit
360f4e5cbd
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      MediaBrowser.ServerApplication/MainStartup.cs

+ 1 - 1
MediaBrowser.ServerApplication/MainStartup.cs

@@ -224,7 +224,7 @@ namespace MediaBrowser.ServerApplication
 
 
             if (!runService)
             if (!runService)
             {
             {
-                ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash"));
+                if (!options.ContainsOption("nosplash")) ShowSplashScreen(_appHost.ApplicationVersion, initProgress, logManager.GetLogger("Splash"));
                 
                 
                 // Not crazy about this but it's the only way to suppress ffmpeg crash dialog boxes
                 // Not crazy about this but it's the only way to suppress ffmpeg crash dialog boxes
                 SetErrorMode(ErrorModes.SEM_FAILCRITICALERRORS | ErrorModes.SEM_NOALIGNMENTFAULTEXCEPT |
                 SetErrorMode(ErrorModes.SEM_FAILCRITICALERRORS | ErrorModes.SEM_NOALIGNMENTFAULTEXCEPT |