1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

fix cpu drainage issue

This commit is contained in:
Jesse Duffield
2019-03-05 21:26:35 +11:00
parent 398f91decb
commit 2393bc791d
3 changed files with 6 additions and 4 deletions

View File

@ -724,7 +724,7 @@ func (g *Gui) execKeybinding(v *View, kb *keybinding) (bool, error) {
func (g *Gui) loaderTick() {
go func() {
for range time.Tick(time.Millisecond) {
for range time.Tick(time.Millisecond * 50) {
for _, view := range g.Views() {
if view.HasLoader {
g.userEvents <- userEvent{func(g *Gui) error { return nil }}