Skip to content

Commit

Permalink
fixed the reset-undo interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartonrealista committed Jul 5, 2024
1 parent 459e317 commit c119e0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ impl Application for YourApp {

Message::Reset => {
self.game.board = Board::new(self.game.menu.width, self.game.menu.height);
self.game.old_board = self.game.board.clone();
self.game.has_ended = false;
}
Message::Event(Event::Keyboard(keyboard::Event::KeyPressed { key, .. })) => {
Expand Down

0 comments on commit c119e0f

Please sign in to comment.