Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification popups #2027

Merged
merged 14 commits into from
Jul 14, 2024
Prev Previous commit
Next Next commit
fix scenario win + popup bug
  • Loading branch information
byorgey committed Jul 14, 2024
commit faf4daf1398e434ec012130457b333aa4f80ac7b
4 changes: 3 additions & 1 deletion src/swarm-tui/Swarm/TUI/Controller.hs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@ handleMainEvent forceRedraw ev = do
case ev of
AppEvent ae -> case ae of
Frame
| not forceRedraw && s ^. gameState . temporal . paused -> continueWithoutRedraw
-- If the game is paused, don't run any game ticks, but do redraw the screen
-- if a redraw is forced.
| s ^. gameState . temporal . paused -> unless forceRedraw continueWithoutRedraw
| otherwise -> runFrameUI forceRedraw
Web (RunWebCode c) -> runBaseWebCode c
_ -> continueWithoutRedraw
Expand Down