mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-03 18:13:16 +00:00
make empty tags appear as (Untitled)
This commit is contained in:
parent
dee18a7c59
commit
b73d7abf0a
1 changed files with 4 additions and 1 deletions
|
@ -388,7 +388,10 @@ func _on_CopyTag_pressed() -> void:
|
||||||
img.fill(tag.color)
|
img.fill(tag.color)
|
||||||
var tex = ImageTexture.new()
|
var tex = ImageTexture.new()
|
||||||
tex.create_from_image(img)
|
tex.create_from_image(img)
|
||||||
$"%TagList".add_icon_item(tex, tag.name)
|
var title = tag.name
|
||||||
|
if title == "":
|
||||||
|
title = "(Untitled)"
|
||||||
|
$"%TagList".add_icon_item(tex, title)
|
||||||
|
|
||||||
if not $"%TagList".is_connected("id_pressed", self, "_on_TagList_id_pressed"):
|
if not $"%TagList".is_connected("id_pressed", self, "_on_TagList_id_pressed"):
|
||||||
$"%TagList".connect("id_pressed", self, "_on_TagList_id_pressed")
|
$"%TagList".connect("id_pressed", self, "_on_TagList_id_pressed")
|
||||||
|
|
Loading…
Add table
Reference in a new issue