1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Remove RefreshedAt from TextWidget

This attribute is used for absolutely nothing. It doesn't need to exist.
This commit is contained in:
Chris Cummer
2018-10-11 17:12:29 -04:00
parent 76f96ecb00
commit a48d15079a
41 changed files with 12 additions and 69 deletions

View File

@@ -81,7 +81,6 @@ func (widget *Widget) Pull() {
func (widget *Widget) Refresh() {
repoPaths := wtf.ToStrs(wtf.Config.UList("wtf.mods.mercurial.repositories"))
widget.UpdateRefreshedAt()
widget.Data = widget.mercurialRepos(repoPaths)
widget.display()
}
@@ -141,7 +140,7 @@ func (widget *Widget) modalFrame(form *tview.Form) *tview.Frame {
return frame
}
func (widget *Widget) currentData() *MercurialRepo{
func (widget *Widget) currentData() *MercurialRepo {
if len(widget.Data) == 0 {
return nil
}
@@ -153,7 +152,7 @@ func (widget *Widget) currentData() *MercurialRepo{
return widget.Data[widget.Idx]
}
func (widget *Widget) mercurialRepos(repoPaths []string) []*MercurialRepo{
func (widget *Widget) mercurialRepos(repoPaths []string) []*MercurialRepo {
repos := []*MercurialRepo{}
for _, repoPath := range repoPaths {