lib/timetrap/cli.rb in timetrap-1.15.1 vs lib/timetrap/cli.rb in timetrap-1.15.2

- old
+ new

@@ -386,10 +386,14 @@ return end end Timer.current_sheet = sheet - warn "Switching to sheet #{sheet.inspect}" + if Timer.last_sheet == sheet + warn "Already on sheet #{sheet.inspect}" + else + warn "Switching to sheet #{sheet.inspect}" + end end def list sheets = ([Timer.current_sheet] | Entry.sheets).map do |sheet| sheet_atts = {:total => 0, :running => 0, :today => 0}