diff --git a/times.go b/times.go index dfbf3a7..060cfc4 100644 --- a/times.go +++ b/times.go @@ -39,12 +39,16 @@ func times() { duration: took, }) }) - p.Send(IndicatorInfo{ - info: "Done!", - quitting: true, - }) + finished = true + p.Send(IndicatorInfo{info: "Done", quitting: true}) p.Quit() + p.Wait() + + if len(times) == 0 { + fmt.Printf("No time logs found for the specified date!\n") + os.Exit(0) + } var total_time time.Duration