Updated go-timertxt library

This commit is contained in:
Brian Buller 2023-09-07 13:20:12 -05:00
parent 3165c0254d
commit 34208ad5c9
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ func (p *Program) LoadTimerList() error {
if err != nil {
return err
}
tl.Sort(timertxt.SORT_UNFINISHED_START)
tl.Sort(timertxt.SortUnfinishedStart)
p.TimerList = tl
return nil
}

View File

@ -97,8 +97,8 @@ func (s *listTimersScreen) Init() wandle.Cmd {
s.fullList.AddTimers(s.timerList.GetTimerSlice())
s.fullList.AddTimers(s.doneList.GetTimerSlice())
s.timerFilterList, s.doneFilterList = s.timerList, s.doneList
s.timerFilterList.Sort(timertxt.SORT_START_DATE_DESC)
s.doneFilterList.Sort(timertxt.SORT_START_DATE_DESC)
s.timerFilterList.Sort(timertxt.SortStartDateDesc)
s.doneFilterList.Sort(timertxt.SortStartDateDesc)
s.updateFullFilterList()
w, h := termbox.Size()
s.choiceMenu.SetBorder(wandle.BRD_CSIMPLE)