From c5f840e23bb9bdc12524bfbbabbe16bc0f40463b Mon Sep 17 00:00:00 2001 From: DevilXD Date: Sat, 8 Jan 2022 11:04:54 +0100 Subject: [PATCH] Fixed a bug with the timer misbehaving when displaying full hours --- gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui.py b/gui.py index defa224..355899c 100644 --- a/gui.py +++ b/gui.py @@ -390,9 +390,9 @@ class CampaignProgress: @staticmethod def _divmod(minutes: int, seconds: int) -> Tuple[int, int]: - hours, minutes = divmod(minutes, 60) if seconds < 60 and minutes > 0: minutes -= 1 + hours, minutes = divmod(minutes, 60) return (hours, minutes) def _update_time(self, seconds: int):