From 9ea2ff8f412551be84e7b5bf5b3bc8fd4ba2d262 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Sun, 26 Jan 2025 15:16:12 +0100 Subject: [PATCH] Remove call to Render() As far as I can tell, this is not needed. The call to Refresh at the end of backgroundFetch takes care of redrawing after refreshing. The call was added in 2fc1498517, that's a long time ago, and we had multiple big refactorings since then. Maybe it was needed back then but no longer is today. --- pkg/gui/background.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/gui/background.go b/pkg/gui/background.go index c9f0e3d40..5da6d697a 100644 --- a/pkg/gui/background.go +++ b/pkg/gui/background.go @@ -76,9 +76,7 @@ func (self *BackgroundRoutineMgr) startBackgroundFetch() { self.gui.waitForIntro.Wait() fetch := func() error { - err := self.backgroundFetch() - self.gui.c.Render() - return err + return self.backgroundFetch() } // We want an immediate fetch at startup, and since goEvery starts by