From a170a9980fd2c9b593aab30bdd0534e0567b1806 Mon Sep 17 00:00:00 2001 From: Robert Date: Thu, 11 Mar 2021 23:39:26 +0100 Subject: [PATCH] UI - Fixed splash screen auto-run behaviour, closes #539 --- src/Artemis.UI/Screens/TrayViewModel.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Artemis.UI/Screens/TrayViewModel.cs b/src/Artemis.UI/Screens/TrayViewModel.cs index c17ab70ae..112c163b3 100644 --- a/src/Artemis.UI/Screens/TrayViewModel.cs +++ b/src/Artemis.UI/Screens/TrayViewModel.cs @@ -50,15 +50,14 @@ namespace Artemis.UI.Screens messageService.ConfigureNotificationProvider(this); bool autoRunning = Bootstrapper.StartupArguments.Contains("--autorun"); bool showOnAutoRun = settingsService.GetSetting("UI.ShowOnStartup", true).Value; - if (!autoRunning || showOnAutoRun) + + if (autoRunning && !showOnAutoRun) + coreService.Initialized += (_, _) => updateService.AutoUpdate(); + else { ShowSplashScreen(); coreService.Initialized += (_, _) => TrayBringToForeground(); } - else - { - coreService.Initialized += (_, _) => updateService.AutoUpdate(); - } } public void TrayBringToForeground()