Fix VRCX.json being slow to save

This commit is contained in:
Natsumi
2025-10-16 13:19:40 +11:00
parent 23d9850a25
commit 617d2e161d
6 changed files with 37 additions and 107 deletions

View File

@@ -94,7 +94,7 @@ namespace VRCX
catch (UriFormatException)
{
VRCXStorage.Instance.Set("VRCX_ProxyServer", string.Empty);
VRCXStorage.Instance.Flush();
VRCXStorage.Instance.Save();
const string message = "The proxy server URI you used is invalid.\nVRCX will close, please correct the proxy URI.";
#if !LINUX
System.Windows.Forms.MessageBox.Show(message, "Invalid Proxy URI", MessageBoxButtons.OK, MessageBoxIcon.Error);