Fix overlay restart

This commit is contained in:
Natsumi
2025-08-31 17:51:50 +12:00
parent 9a7a7c0b58
commit d6a1004632
4 changed files with 4 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ namespace VRCX
Exit();
Instance = new VRCXVRCef();
Instance.Init();
Program.VRCXVRInstance = Instance;
MainForm.Instance.Browser.ExecuteScriptAsync("console.log('VRCXVR Restarted');");
}

View File

@@ -81,6 +81,7 @@ namespace VRCX
Exit();
Instance = new VRCXVRLegacy();
Instance.Init();
Program.VRCXVRInstance = Instance;
MainForm.Instance.Browser.ExecuteScriptAsync("console.log('VRCXVR Restarted');");
}

View File

@@ -111,6 +111,7 @@ namespace VRCX
Exit();
Instance = new VRCXVRElectron();
Instance.Init();
Program.VRCXVRInstance = Instance;
//MainForm.Instance.Browser.ExecuteScriptAsync("console.log('VRCXVR Restarted');");
}

View File

@@ -24,7 +24,7 @@ namespace VRCX
public static string Version { get; private set; }
public static bool LaunchDebug;
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
public static VRCXVRInterface VRCXVRInstance { get; private set; }
public static VRCXVRInterface VRCXVRInstance { get; set; }
public static AppApi AppApiInstance { get; private set; }
public static AppApiVr AppApiVrInstance { get; private set; }