fix crash on startup when scaling is not 100%

This commit is contained in:
Vincent Maas committed 2020-11-26 22:30:24 +01:00
1 parent f46fcbfbd4
commit 067b6d7b99
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -675,7 +675,7 @@ namespace ColorControl
{
Hide();
}
else if (WindowState == FormWindowState.Normal)
else if (WindowState == FormWindowState.Normal && _config != null)
{
_config.FormWidth = Width;
_config.FormHeight = Height;