Disable remove current checked branch

This commit is contained in:
Alberto Fanjul 2023-01-08 20:22:03 +01:00
parent 201de21e7e
commit 60a775df4d

View file

@ -57,7 +57,7 @@ class RefActionDelete : GitgExt.UIElement, GitgExt.Action, GitgExt.RefAction, Ob
{
get
{
return reference.is_branch()
return (reference.is_branch() && !((Ggit.Branch)reference).is_head())
|| reference.is_tag();
}
}