Improve performance when drawing the spinner on background events

This commit is contained in:
Antoine Gaudreau Simard 2026-05-05 18:35:50 -04:00 committed by Stefan Haller
parent 9c3e7dac88
commit 0d195077e4

View file

@ -96,7 +96,7 @@ func (self *AppStatusHelper) renderAppStatus() {
for range ticker.C {
appStatus, color := self.statusMgr().GetStatusString(self.c.UserConfig())
self.c.Views().AppStatus.FgColor = color
self.c.OnUIThread(func() error {
self.c.OnUIThreadContentOnly(func() error {
self.c.SetViewContent(self.c.Views().AppStatus, appStatus)
return nil
})