Skip to content

Commit

Permalink
fix: also hide patcher window in patch installer
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Oct 3, 2023
1 parent e6d2ff8 commit 79355d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/XIVLauncher.Common/Game/Patch/PatchInstaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public void StartIfNeeded(bool external = true)
if (!EnvironmentSettings.IsNoRunas && Environment.OSVersion.Version.Major >= 6)
startInfo.Verb = "runas";

if (!Debugger.IsAttached)
{
startInfo.CreateNoWindow = true;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
}

startInfo.Arguments = $"rpc {rpcName}";

State = InstallerState.NotReady;
Expand Down

0 comments on commit 79355d5

Please sign in to comment.