mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04:00
Improve performance when drawing the spinner on background events
This commit is contained in:
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
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue