1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-05-22 10:15:43 +02:00

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
@@ -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
})