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:
parent
985a94dbaf
commit
a170a9980f
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user