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

Commit 39fd1f9

Browse files
StanleyGoldmanshana
authored andcommitted
Adding call to GitClient.DeleteBranch(...)
1 parent 199482f commit 39fd1f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,10 @@ private void OnCreateGUI()
445445
var selectedBranchName = selectedNode.Name;
446446
var dialogTitle = "Delete Branch: " + selectedBranchName;
447447
var dialogMessage = "Are you sure you want to delete the branch: " + selectedBranchName + "?";
448-
EditorUtility.DisplayDialog("Delete Branch?", dialogMessage, "Delete", "Cancel");
448+
if (EditorUtility.DisplayDialog("Delete Branch?", dialogMessage, "Delete", "Cancel"))
449+
{
450+
GitClient.DeleteBranch(selectedBranchName, true).Start();
451+
}
449452
}
450453
}
451454
EditorGUI.EndDisabledGroup();

0 commit comments

Comments
 (0)