[modules/pomodoro] Fix bug arising when the refresh interval is greater than 1s
This commit is contained in:
parent
a7d22edcda
commit
d59b0161a3
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class Module(bumblebee.engine.Module):
|
||||||
self.remaining_time -= timediff
|
self.remaining_time -= timediff
|
||||||
self.time = datetime.datetime.now()
|
self.time = datetime.datetime.now()
|
||||||
|
|
||||||
if self.remaining_time.seconds <= 0:
|
if self.remaining_time.total_seconds() <= 0:
|
||||||
self.notify()
|
self.notify()
|
||||||
if self.pomodoro["type"] == "Work":
|
if self.pomodoro["type"] == "Work":
|
||||||
self.pomodoro["type"] = "Break"
|
self.pomodoro["type"] = "Break"
|
||||||
|
|
Loading…
Reference in a new issue