Skip to content

Commit

Permalink
Fix crash when enabling advanced options with no config loaded
Browse files Browse the repository at this point in the history
Literally a 1-character fix...
  • Loading branch information
Sparronator9999 committed Jan 14, 2025
1 parent bd95af9 commit 1052cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YAMDCC.ConfigEditor/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ private void tsiAdvanced_Click(object sender, EventArgs e)
}
tsiAdvanced.Checked = !tsiAdvanced.Checked;

if (Config.FanModeConf is not null)
if (Config?.FanModeConf is not null)
{
cboFanMode.Enabled = tsiAdvanced.Checked;
}
Expand Down

0 comments on commit 1052cf3

Please sign in to comment.