diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2023-10-02 11:41:11 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2023-10-02 11:44:51 +1100 |
commit | b726fd44e794d5260e4d14dca2e6426b7885133a (patch) | |
tree | 2fac13bbfc7f4dca9c82084925f6b705e8f73bcf /pkg/gui/context/branches_context.go | |
parent | 830c48f7687cd59609ebc114eda5dff95e24eeb1 (diff) |
Use universal resource names to identify itemsshow-sync-status-in-branches-panel-jesse
Refactoring the code to allow for any list item, not just branches/tags, to have an
inline status.
Diffstat (limited to 'pkg/gui/context/branches_context.go')
-rw-r--r-- | pkg/gui/context/branches_context.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/gui/context/branches_context.go b/pkg/gui/context/branches_context.go index 16bd58709..68324d020 100644 --- a/pkg/gui/context/branches_context.go +++ b/pkg/gui/context/branches_context.go @@ -27,9 +27,7 @@ func NewBranchesContext(c *ContextCommon) *BranchesContext { getDisplayStrings := func(_ int, _ int) [][]string { return presentation.GetBranchListDisplayStrings( viewModel.GetItems(), - func(branch *models.Branch) types.RefOperation { - return c.State().GetRefOperation(branch.FullRefName()) - }, + c.State().GetItemOperation, c.State().GetRepoState().GetScreenMode() != types.SCREEN_NORMAL, c.Modes().Diffing.Ref, c.Tr, |