dirlist: don't invalidate on spinner.Invalidate

The dirlist is invalidated explicitly after the spinner is stopped.
For simplicitly, don't invalidate on spinner.Invalidate.

Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Tim Culverhouse 2022-09-19 18:31:41 -05:00 committed by Robin Jarry
parent 044519e1dc
commit aa01f0f6dc

View file

@ -80,9 +80,6 @@ func NewDirectoryList(conf *config.AercConfig, acctConf *config.AccountConfig,
} }
uiConf := dirlist.UiConfig("") uiConf := dirlist.UiConfig("")
dirlist.spinner = NewSpinner(uiConf) dirlist.spinner = NewSpinner(uiConf)
dirlist.spinner.OnInvalidate(func(_ ui.Drawable) {
dirlist.Invalidate()
})
dirlist.spinner.Start() dirlist.spinner.Start()
if uiConf.DirListTree { if uiConf.DirListTree {