Skip to content

Commit

Permalink
Left panel: Make "Expand" and "Collapse" based on selected node
Browse files Browse the repository at this point in the history
Fixes #8873
  • Loading branch information
pmiossec committed Feb 23, 2021
1 parent e77f8c3 commit fefb9be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GitUI/BranchTreePanel/RepoObjectsTree.ContextActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ private void RegisterContextActions()
_tagNodeMenuItems = new TagMenuItems<TagNode>(this);
AddContextMenuItems(menuTag, _tagNodeMenuItems.Select(s => s.Item));

RegisterClick(mnubtnCollapseAll, () => treeMain.CollapseAll());
RegisterClick(mnubtnExpandAll, () => treeMain.ExpandAll());
RegisterClick(mnubtnCollapseAll, () => treeMain.SelectedNode?.Collapse());
RegisterClick(mnubtnExpandAll, () => treeMain.SelectedNode?.ExpandAll());
RegisterClick(mnubtnMoveUp, () => ReorderTreeNode(treeMain.SelectedNode, up: true));
RegisterClick(mnubtnMoveDown, () => ReorderTreeNode(treeMain.SelectedNode, up: false));

Expand Down

0 comments on commit fefb9be

Please sign in to comment.