Skip to content

Commit

Permalink
Do not repeat with last duration
Browse files Browse the repository at this point in the history
  • Loading branch information
justincampbell committed Dec 4, 2020
1 parent f9a4f7d commit 49143bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/repeat.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ func repeatCmd(cmd *cobra.Command, args []string) error {

p.StartTime = time.Now().Add(-agoFlag)

s, err := client.Settings()
if err != nil {
return err
}
p.Duration = s.DefaultPomodoroDuration

err = client.Start(p)
if err != nil {
return err
Expand Down

0 comments on commit 49143bf

Please sign in to comment.