-
Notifications
You must be signed in to change notification settings - Fork 445
Functionality to mark folder nodes as "root" #469
Functionality to mark folder nodes as "root" #469
Conversation
treeLocals.NodeIcon = Styles.BranchIcon; | ||
treeLocals.FolderIcon = Styles.FolderIcon; | ||
|
||
treeRemotes = new Tree(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
treeLocals and treeRemotes are always either defined or null together right? It isn't worth having a separate if for treeRemotes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They always get instantiated together, so I figured I could save the boolean
check.
@@ -383,7 +385,7 @@ private void ResetNodeIcons(TreeNode node) | |||
} | |||
else if (node.IsFolder) | |||
{ | |||
if (node.Level == 1) | |||
if (node.Level == RootFolderIconLevel) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this switched from 1 to -1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know what. It's a rudimentary fix for something that i'm already having to change.
I'm going to send a PR before this one that provides a correct solution instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good
…ixes/branches-view-globe-icon
3d80dc3
to
3dcc13e
Compare
…ixes/branches-view-globe-icon
…anches-view-globe-icon # Conflicts: # src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs # src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs
…ixes/branches-view-globe-icon # Conflicts: # src/UnityExtension/Assets/Editor/GitHub.Unity/UI/TreeControl.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Note: This branch targets
enhancements/branches-view-rollup
#464Fixes #454
Depends on: