mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2024-11-20 16:20:18 +01:00
Hide arrow target when HEAD is on branch
This commit is contained in:
parent
e7842fb4ee
commit
951ebd4c59
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ func _process(_delta):
|
||||||
$Line.visible = show_arrow
|
$Line.visible = show_arrow
|
||||||
$Tip.visible = show_arrow
|
$Tip.visible = show_arrow
|
||||||
|
|
||||||
if $Target.text.substr(0, 5) != "refs/":
|
if $Target.text.substr(0, 5) != "refs/" or repository.objects.has(target):
|
||||||
$Target.text = ""
|
$Target.text = ""
|
||||||
|
|
||||||
$Line.points[0] = start - parent_position
|
$Line.points[0] = start - parent_position
|
||||||
|
|
Loading…
Reference in a new issue