Rework Startup Args (#946)

* Rework startup args

* Preserve previous startup args on re-launch

* Ignore subprocess when checking for duplicate processes

* Cleanup code

* Remove extra process list grabbing

* Use `IsUpgradePrefix` when using `RestartApplication`

* Change `ProxyServerPrefix` to `ProxyUrlPrefix`
This commit is contained in:
Usman Shafiq
2024-10-21 15:06:56 -04:00
committed by GitHub
parent ddc1604795
commit 4f34e2d18a
4 changed files with 120 additions and 41 deletions

View File

@@ -59,8 +59,8 @@ namespace VRCX
private void SetProxy()
{
if (!string.IsNullOrEmpty(StartupArgs.ProxyUrl))
ProxyUrl = StartupArgs.ProxyUrl;
if (!string.IsNullOrEmpty(StartupArgs.LaunchArguements.ProxyUrl))
ProxyUrl = StartupArgs.LaunchArguements.ProxyUrl;
if (string.IsNullOrEmpty(ProxyUrl))
{