From 86758622289bafb2780844f0c40acdd734e9ed1a Mon Sep 17 00:00:00 2001 From: Antoine Gaudreau Simard Date: Thu, 7 May 2026 20:55:00 -0400 Subject: [PATCH] Bounce setGithubPullRequests' Branches render to UI thread Fixes an issue mostly noticeable using the go -race mode, this resolves them. --- pkg/gui/controllers/helpers/refresh_helper.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/gui/controllers/helpers/refresh_helper.go b/pkg/gui/controllers/helpers/refresh_helper.go index cb17ffd43..77de9ca4a 100644 --- a/pkg/gui/controllers/helpers/refresh_helper.go +++ b/pkg/gui/controllers/helpers/refresh_helper.go @@ -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 }