Fix crash

This commit is contained in:
Natsumi
2023-12-04 21:17:45 +13:00
parent 704268bb1b
commit 897e4f2974

View File

@@ -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)