mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
TI-51: in the taskwarrior hook, deleting a task doesn't stop the watch
- Thanks to Mattia Rizzolo.
This commit is contained in:
parent
887e419ed4
commit
db53745181
4 changed files with 13 additions and 1 deletions
|
@ -63,3 +63,10 @@ if 'start' in new and not 'start' in old:
|
|||
elif not 'start' in new and 'start' in old:
|
||||
os.system('timew stop ' + combined + ' :yes')
|
||||
|
||||
# TI-51 - in the taskwarrior hook, deleting a task doesn't stop the watch
|
||||
#
|
||||
# Broadened to: Any task that is active, with a non-pending status should not
|
||||
# be tracked.
|
||||
elif 'start' in new and new['status'] != 'pending':
|
||||
os.system('timew stop ' + combined + ' :yes')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue