mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-31 09:43:46 +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);
|
messageService.ConfigureNotificationProvider(this);
|
||||||
bool autoRunning = Bootstrapper.StartupArguments.Contains("--autorun");
|
bool autoRunning = Bootstrapper.StartupArguments.Contains("--autorun");
|
||||||
bool showOnAutoRun = settingsService.GetSetting("UI.ShowOnStartup", true).Value;
|
bool showOnAutoRun = settingsService.GetSetting("UI.ShowOnStartup", true).Value;
|
||||||
if (!autoRunning || showOnAutoRun)
|
|
||||||
|
if (autoRunning && !showOnAutoRun)
|
||||||
|
coreService.Initialized += (_, _) => updateService.AutoUpdate();
|
||||||
|
else
|
||||||
{
|
{
|
||||||
ShowSplashScreen();
|
ShowSplashScreen();
|
||||||
coreService.Initialized += (_, _) => TrayBringToForeground();
|
coreService.Initialized += (_, _) => TrayBringToForeground();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
coreService.Initialized += (_, _) => updateService.AutoUpdate();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TrayBringToForeground()
|
public void TrayBringToForeground()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user