Skip to content

Commit

Permalink
Always pause running before unpause other
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphexion committed Sep 9, 2021
1 parent 29efcdb commit 5f230d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/timers.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ func pauseCmdFunc(cmd *cobra.Command, args []string) {
}

func unpauseCmdFunc(cmd *cobra.Command, args []string) {
err := mid.PauseRunningTimer()
if err != nil {
log.Fatal(err)
}

name := strings.Join(args, "")
timer, err := mid.TimerWithName(name)
if err != nil {
Expand Down

0 comments on commit 5f230d7

Please sign in to comment.