1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

UI - Fixed splash screen auto-run behaviour, closes #539

This commit is contained in:
Robert 2021-03-11 23:39:26 +01:00
parent 985a94dbaf
commit a170a9980f

View File

@ -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()