diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-03-12 09:02:24 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-03-12 09:02:24 +0100 |
commit | d3b396b17602ad71a62cbc2eaf595a1d94579c4a (patch) | |
tree | 3be5e49c5d9081ac3de4cd34b64b47ada23e9a22 /core/reset | |
parent | e6c1cacb60010ec75e02cf72acf34278417670fd (diff) |
make state update atomic and clean up some code
Diffstat (limited to 'core/reset')
-rwxr-xr-x | core/reset | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,5 +1,11 @@ #!/bin/sh [ "$1" = "info" ] && echo "reset the timer and lap counter" && exit 2 -rm -rf "$POMODORO_STATE_PATH" +lap=0 +state='reset' +update_time=1 + +. "$core_path/update" + +save_state |