Don't show UI when silently updating

This commit is contained in:
Robert committed 2023-03-26 13:05:19 +02:00
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");