mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix git ordering
This is due to us sorting It doesn't look like there is a need to sort here, so remove it
This commit is contained in:
parent
bc0d79df7b
commit
e213e6b337
@ -3,7 +3,6 @@ package git
|
|||||||
import (
|
import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
"sort"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/gdamore/tcell"
|
"github.com/gdamore/tcell"
|
||||||
@ -79,9 +78,6 @@ func (widget *Widget) Refresh() {
|
|||||||
repoPaths := utils.ToStrs(widget.settings.repositories)
|
repoPaths := utils.ToStrs(widget.settings.repositories)
|
||||||
|
|
||||||
widget.GitRepos = widget.gitRepos(repoPaths)
|
widget.GitRepos = widget.gitRepos(repoPaths)
|
||||||
sort.Slice(widget.GitRepos, func(i, j int) bool {
|
|
||||||
return widget.GitRepos[i].Path < widget.GitRepos[j].Path
|
|
||||||
})
|
|
||||||
|
|
||||||
widget.display()
|
widget.display()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user