mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-11 08:06:25 -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 {
|
for range ticker.C {
|
||||||
appStatus, color := self.statusMgr().GetStatusString(self.c.UserConfig())
|
appStatus, color := self.statusMgr().GetStatusString(self.c.UserConfig())
|
||||||
self.c.Views().AppStatus.FgColor = color
|
self.c.Views().AppStatus.FgColor = color
|
||||||
self.c.OnUIThread(func() error {
|
self.c.OnUIThreadContentOnly(func() error {
|
||||||
self.c.SetViewContent(self.c.Views().AppStatus, appStatus)
|
self.c.SetViewContent(self.c.Views().AppStatus, appStatus)
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue