From 897e4f2974f7a8f12c11d922649c7f0ad9319a36 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Mon, 4 Dec 2023 21:17:45 +1300 Subject: [PATCH] Fix crash --- Dotnet/MainForm.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dotnet/MainForm.cs b/Dotnet/MainForm.cs index 87209ebc..94d6dde8 100644 --- a/Dotnet/MainForm.cs +++ b/Dotnet/MainForm.cs @@ -139,13 +139,13 @@ namespace VRCX LastSizeWidth = Size.Width; LastSizeHeight = Size.Height; - _saveTimer.Start(); + _saveTimer?.Start(); } private void SaveTimer_Tick(object sender, EventArgs e) { SaveWindowState(); - _saveTimer.Stop(); + _saveTimer?.Stop(); } private void MainForm_Move(object sender, System.EventArgs e) { @@ -156,7 +156,7 @@ namespace VRCX LastLocationX = Location.X; LastLocationY = Location.Y; - _saveTimer.Start(); + _saveTimer?.Start(); } private void MainForm_FormClosing(object sender, FormClosingEventArgs e)