summaryrefslogtreecommitdiffstats
path: root/pkg/gui/presentation/status.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-09-26 17:16:11 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-09-26 17:25:45 +0200
commit830c48f7687cd59609ebc114eda5dff95e24eeb1 (patch)
treedc74d84a9d0b9669ad76feea0848e2c7be3775ed /pkg/gui/presentation/status.go
parent944b3994d657dea2f803c0cceb03f40759685c33 (diff)
Avoid rendering branches view twice when refreshing
refreshWorktrees re-renders the branches view, because the branches view shows worktrees against branches. This means that when both BRANCHES and WORKTREES are requested to be refreshed, the branches view would be rendered twice in short succession. This causes an ugly visual glitch when force-pushing a branch, because when pushing is done, we would see the ↑4↓9 status come back from under the Pushing status for a brief moment, to be replaced with a green checkmark a moment later. Fix this by including the worktree refresh in the branches refresh when both are requested. This means that the two are no longer running in parallel for an async refresh, but hopefully that's not so bad.
Diffstat (limited to 'pkg/gui/presentation/status.go')
0 files changed, 0 insertions, 0 deletions