Fix crash

This commit is contained in:
Natsumi
2023-12-04 21:17:45 +13:00
parent 704268bb1b
commit 897e4f2974
+3 -3
View File
@@ -139,13 +139,13 @@ namespace VRCX
LastSizeWidth = Size.Width; LastSizeWidth = Size.Width;
LastSizeHeight = Size.Height; LastSizeHeight = Size.Height;
_saveTimer.Start(); _saveTimer?.Start();
} }
private void SaveTimer_Tick(object sender, EventArgs e) private void SaveTimer_Tick(object sender, EventArgs e)
{ {
SaveWindowState(); SaveWindowState();
_saveTimer.Stop(); _saveTimer?.Stop();
} }
private void MainForm_Move(object sender, System.EventArgs e) private void MainForm_Move(object sender, System.EventArgs e)
{ {
@@ -156,7 +156,7 @@ namespace VRCX
LastLocationX = Location.X; LastLocationX = Location.X;
LastLocationY = Location.Y; LastLocationY = Location.Y;
_saveTimer.Start(); _saveTimer?.Start();
} }
private void MainForm_FormClosing(object sender, FormClosingEventArgs e) private void MainForm_FormClosing(object sender, FormClosingEventArgs e)