mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
UI - Fixed splash screen auto-run behaviour, closes #539
This commit is contained in:
1 parent
985a94dbaf
commit
a170a9980f
1 file changed
+4
-5
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user