mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-31 01:19:36 +00:00
Fixed a bug with the timer misbehaving when displaying full hours
This commit is contained in:
2
gui.py
2
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):
|
||||
|
||||
Reference in New Issue
Block a user