If keyboard interrupt (control c) is used, give quit prompt even if record that last partial pomodoro
This commit is contained in:
parent
cb333c4bc5
commit
33390b74b7
1 changed files with 1 additions and 2 deletions
|
@ -95,8 +95,7 @@ def main():
|
||||||
whatdid = pomodoro_prompt_report(whatnext)
|
whatdid = pomodoro_prompt_report(whatnext)
|
||||||
record_task(whatdid, start)
|
record_task(whatdid, start)
|
||||||
log_step('Incomplete (' + time_spent + ') pomodoro: ' + whatdid, start, True)
|
log_step('Incomplete (' + time_spent + ') pomodoro: ' + whatdid, start, True)
|
||||||
else:
|
quit_prompt()
|
||||||
quit_prompt()
|
|
||||||
else:
|
else:
|
||||||
print('What did you break?')
|
print('What did you break?')
|
||||||
# If we somehow end up here, try a last-ditch effort to save.
|
# If we somehow end up here, try a last-ditch effort to save.
|
||||||
|
|
Loading…
Reference in a new issue