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:
committed by
Stefan Haller
parent
225bcaa619
commit
8675862228
@@ -949,7 +949,11 @@ func (self *RefreshHelper) setGithubPullRequests(authToken string, baseRemote *m
|
|||||||
self.savePullRequestsToCache(prs)
|
self.savePullRequestsToCache(prs)
|
||||||
self.rebuildPullRequestsMap()
|
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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user