Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 8af82db

Browse files
Renaming method and moving some comments
1 parent c922648 commit 8af82db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/BranchesView.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public void OnEmbeddedGUI()
147147

148148
GUILayout.BeginHorizontal();
149149
{
150-
OnCreateGUI();
150+
OnButtonBarGUI();
151151
}
152152
GUILayout.EndHorizontal();
153153

@@ -451,11 +451,11 @@ private void SetFavourite(BranchTreeNode branch, bool favourite)
451451
}
452452
}
453453

454-
private void OnCreateGUI()
454+
private void OnButtonBarGUI()
455455
{
456-
// Create button
457456
if (mode == BranchesMode.Default)
458457
{
458+
// Delete button
459459
// If the current branch is selected, then do not enable the Delete button
460460
var disableDelete = activeBranchNode == selectedNode;
461461
EditorGUI.BeginDisabledGroup(disableDelete);
@@ -473,6 +473,7 @@ private void OnCreateGUI()
473473
}
474474
EditorGUI.EndDisabledGroup();
475475

476+
// Create button
476477
GUILayout.FlexibleSpace();
477478
if (GUILayout.Button(CreateBranchButton, EditorStyles.miniButton, GUILayout.ExpandWidth(false)))
478479
{

0 commit comments

Comments
 (0)