timer: add urgent (fix)
@@ -144,10 +144,6 @@ class Py3status:
return response
def on_click(self, event):
- if self.done:
- self.done = False
- return
-
deltas = {
'hours': 3600,
'mins': 60,
@@ -156,7 +152,10 @@ class Py3status:
index = event['index']
button = event['button']
- # If played an alarm sound then cancel the sound on any putton press
+ # If played an alarm sound, then cancel the sound and urgent on any
+ # button press... otherwise, we only cancel an urgent
+ if self.done:
+ self.done = False
if self.alarm:
self.py3.stop_sound()
self.alarm = False
