mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-06-20 01:19:23 +02:00
Improve performance of inline status spinner
Now that HandleRender no longer does an implicit Render(), we can use it inside OnUIThreadContentOnly to save performance, on the assumption that rerendering a view that contains an inline spinner never changes the layout.
This commit is contained in:
1 parent
76211eea68
commit
4734bab896
1 file changed
+1
-1
@@ -149,7 +149,7 @@ func (self *InlineStatusHelper) stop(opts InlineStatusOpts) {
|
||||
}
|
||||
|
||||
func (self *InlineStatusHelper) renderContext(contextKey types.ContextKey) {
|
||||
self.c.OnUIThread(func() error {
|
||||
self.c.OnUIThreadContentOnly(func() error {
|
||||
self.c.ContextForKey(contextKey).HandleRender()
|
||||
return nil
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user