1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-06-20 01:19:23 +02:00

Bounce setGithubPullRequests' Branches render to UI thread

Fixes an issue mostly noticeable using the go -race mode, this resolves
them.
This commit is contained in:
Antoine Gaudreau Simard
2026-05-07 20:55:00 -04:00
committed by Stefan Haller
parent 225bcaa619
commit 8675862228
@@ -949,7 +949,11 @@ func (self *RefreshHelper) setGithubPullRequests(authToken string, baseRemote *m
self.savePullRequestsToCache(prs)
self.rebuildPullRequestsMap()
self.c.PostRefreshUpdate(self.c.Contexts().Branches)
self.c.OnUIThread(func() error {
self.c.PostRefreshUpdate(self.c.Contexts().Branches)
return nil
})
return nil
}