Skip to content

Commit

Permalink
UI: Fixed crash at startup when pressing some keys before the game se…
Browse files Browse the repository at this point in the history
…lection screen is finished loading
  • Loading branch information
SourMesen committed Jul 6, 2024
1 parent 52c5da5 commit 13745ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/Controls/StateGrid.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ private void InitGrid(bool forceUpdate = false)

private void timerInput_Tick(object? sender, EventArgs e)
{
if(!IsEffectivelyVisible || !IsKeyboardFocusWithin) {
if(!IsEffectivelyVisible || !IsKeyboardFocusWithin || Entries == null || Entries.Count == 0) {
_entryToLoad = null;
_waitForRelease = false;
return;
Expand Down

0 comments on commit 13745ca

Please sign in to comment.