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

Commit 48df3bb

Browse files
donokudashana
authored andcommitted
Add a button and a dialog
1 parent de6b7be commit 48df3bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ private void OnCreateGUI()
436436
// Create button
437437
if (mode == BranchesMode.Default)
438438
{
439+
if (GUILayout.Button("Delete", EditorStyles.miniButton, GUILayout.ExpandWidth(false)))
440+
{
441+
EditorUtility.DisplayDialog("Delete Branch?", "Are you sure you want to delete the branch: BRANCHNAME", "Delete", "Cancel");
442+
}
439443
GUILayout.FlexibleSpace();
440444
if (GUILayout.Button(CreateBranchButton, EditorStyles.miniButton, GUILayout.ExpandWidth(false)))
441445
{

0 commit comments

Comments
 (0)