jesseduffield.lazygit/pkg/gui/controllers/helpers
Stefan Haller 830c48f768 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.
2023-09-26 17:25:45 +02:00
..
amend_helper.go Improve prompts when amending commits 2023-09-01 18:55:16 +02:00
app_status_helper.go Add constant for LoaderAnimationInterval 2023-09-20 13:30:49 +02:00
bisect_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
branches_helper.go Allow deleting remote tags/branches from local tag/branch views (#2738) 2023-08-10 17:39:26 +10:00
cherry_pick_helper.go Allow cherry-picking commits during a rebase 2023-09-18 10:50:19 +02:00
commits_helper.go Add key binding for switching from the commit message panel to an editor 2023-08-21 10:03:34 +02:00
confirmation_helper.go Remove unused WithLoaderPanel code 2023-09-20 13:30:49 +02:00
credentials_helper.go Handle pending actions properly in git commands that require credentials 2023-07-08 22:54:52 +10:00
diff_helper.go Move IgnoreWhitespaceInDiffView to AppState, and persist it when it changes 2023-07-31 11:41:55 +02:00
files_helper.go use 'suspend' instead of 'editInTerminal' internally 2023-08-09 22:03:58 +10:00
gpg_helper.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
helpers.go Extract a SubCommitsHelper from SwitchToSubCommitsController 2023-08-29 08:16:40 +02:00
host_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
merge_and_rebase_helper.go Use DisabledReason for rebasing a branch onto itself 2023-09-18 10:20:23 +02:00
merge_conflicts_helper.go Fix race condition 2023-05-16 21:01:38 +10:00
mode_helper.go Add a "Mark commit as base commit for rebase" command 2023-07-31 08:41:41 +02:00
patch_building_helper.go Don't pass ignoreWhitespace to git commands 2023-09-04 17:50:49 +02:00
record_directory_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
refresh_helper.go Avoid rendering branches view twice when refreshing 2023-09-26 17:25:45 +02:00
refs_helper.go Replace whitespace with '-' when renaming a branch 2023-09-05 14:57:18 +01:00
repos_helper.go Remove sync mutex 2023-09-25 22:03:50 +02:00
search_helper.go Don't select current search result when showing search status 2023-09-25 16:37:59 +10:00
snake_helper.go split context common from helper common 2023-04-30 13:19:53 +10:00
staging_helper.go Don't pass ignoreWhitespace to git commands 2023-09-04 17:50:49 +02:00
sub_commits_helper.go feat: add jump-to-panel label setting 2023-09-09 09:45:08 +02:00
suggestions_helper.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
tags_helper.go Allow force-tagging if tag exists 2023-07-31 11:38:52 +02:00
update_helper.go Use an interface for tasks instead of a concrete struct 2023-07-10 17:12:21 +10:00
upstream_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
upstream_helper_test.go Standardise on using lo for slice functions 2023-07-30 18:51:23 +10:00
view_helper.go standardise helper args 2023-04-30 13:19:53 +10:00
window_arrangement_helper.go Add demo test variant 2023-07-31 22:33:04 +10:00
window_helper.go move side window actions to controllers package 2023-04-30 13:19:53 +10:00
working_tree_helper.go Extract a WithEnsureCommitableFiles function 2023-08-29 09:10:59 +02:00
worktree_helper.go Use fields rather than methods on worktrees 2023-07-30 18:35:24 +10:00