Skip to content

Commit 96d1386

Browse files
committed
Fix minor issue with the "redo" button visibility
1 parent 4733c40 commit 96d1386

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,12 @@ impl Application for OfflinePuzzles {
521521
// to analyze a full game in analysis mode after the puzzles ended.
522522
self.analysis_history = vec![self.board];
523523
self.puzzle_tab.current_puzzle_move = 1;
524+
self.puzzle_tab.game_status = GameStatus::NoPuzzles;
525+
} else {
524526
self.puzzle_tab.game_status = GameStatus::PuzzleEnded;
525527
}
526528
self.last_move_from = None;
527529
self.last_move_to = None;
528-
self.puzzle_tab.game_status = GameStatus::NoPuzzles;
529530
self.puzzle_status = String::from("All puzzles done for this search!");
530531
}
531532
} else {

0 commit comments

Comments
 (0)