Skip to content

Commit

Permalink
Fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Dec 4, 2023
1 parent 704268b commit 897e4f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dotnet/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ private void MainForm_Resize(object sender, System.EventArgs e)
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)
{
Expand All @@ -156,7 +156,7 @@ private void MainForm_Move(object sender, System.EventArgs e)
LastLocationX = Location.X;
LastLocationY = Location.Y;

_saveTimer.Start();
_saveTimer?.Start();
}

private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
Expand Down

0 comments on commit 897e4f2

Please sign in to comment.