Fix restoring window state when window starts minimized

Only start minimized when starting at Windows start-up
This commit is contained in:
Natsumi
2025-04-13 21:17:09 +10:00
parent ad45c0cded
commit 9cdc169289
3 changed files with 31 additions and 37 deletions

View File

@@ -72,6 +72,9 @@ namespace VRCX
var arguments = new VrcxLaunchArguments();
foreach (var arg in args)
{
if (arg == VrcxLaunchArguments.IsStartupPrefix)
arguments.IsStartup = true;
if (arg == VrcxLaunchArguments.IsUpgradePrefix)
arguments.IsUpgrade = true;
@@ -95,6 +98,9 @@ namespace VRCX
internal class VrcxLaunchArguments
{
public const string IsStartupPrefix = "--startup";
public bool IsStartup { get; set; } = false;
public const string IsUpgradePrefix = "/Upgrade";
public bool IsUpgrade { get; set; } = false;