Improve performance when drawing the spinner on background events

This commit is contained in:
Antoine Gaudreau Simard authored and Stefan Haller committed 2026-05-06 18:53:32 +02:00
1 parent 9c3e7dac88
commit 0d195077e4
1 file changed
+1 -1
@@ -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
})