Set the selected window to null in toggleGameMenu

This caused a bug when pressing escape instead of left-click to return to the game.

fixes #1691
fixes #1655
This commit is contained in:
IntegratedQuantum 2025-07-20 22:41:51 +02:00
parent fe687be59f
commit 31d62f77ee

View File

@ -580,6 +580,7 @@ pub fn toggleGameMenu() void {
}
}
reorderWindows = false;
selectedWindow = null;
}
}