From 520c5dc3a0a5320891b6b01374ee9101ca02c4bd Mon Sep 17 00:00:00 2001 From: kfkama Date: Thu, 17 Feb 2022 20:19:19 +0100 Subject: [PATCH] Bugfix timer reset --- src/main/java/Minesweeper/TimerLable.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/Minesweeper/TimerLable.java b/src/main/java/Minesweeper/TimerLable.java index 750e417..68a1ea9 100644 --- a/src/main/java/Minesweeper/TimerLable.java +++ b/src/main/java/Minesweeper/TimerLable.java @@ -24,6 +24,9 @@ public class TimerLable extends JLabel { public void reset() { task.reset = true; + counter = 0; + setText(String.valueOf(counter)); + repaint(); task.stop = false; }