Skip to content

Commit

Permalink
don't add empty tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjarrigan committed Mar 24, 2023
1 parent 694b40e commit 17022d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/input.gd
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ func _ready():
tree_exited.connect(func(): Globals.item_changed.emit())

func _on_text_submitted(new_text):
Globals.add_task(get_meta("parent"), new_text)
if new_text != "":
Globals.add_task(get_meta("parent"), new_text)
queue_free()

0 comments on commit 17022d9

Please sign in to comment.