mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Don't show UI when silently updating
This commit is contained in:
1 parent
834212737f
commit
494c5b4054
2 files changed
+10
-14
No files matched your search
@@ -95,8 +95,8 @@ public class ApplicationStateManager
|
||||
private void UtilitiesOnUpdateRequested(object? sender, UpdateEventArgs e)
|
||||
{
|
||||
List<string> argsList = new(StartupArguments);
|
||||
if (e.Silent)
|
||||
argsList.Add("--autorun");
|
||||
if (e.Silent && !argsList.Contains("--minimized"))
|
||||
argsList.Add("--minimized");
|
||||
|
||||
// Retain startup arguments after update by providing them to the script
|
||||
string script = Path.Combine(Constants.UpdatingFolder, "installing", "scripts", "update.ps1");
|
||||
|
||||
Reference in new issue
Block a user