fix: weird bug when clicking everywhere fast

This commit is contained in:
xananax prozaxx 2023-03-05 15:43:33 +04:00
parent e76608a67e
commit cffc879ba7

View File

@ -36,8 +36,11 @@ func get_current_text() -> String:
var item := get_selected() var item := get_selected()
if not item: if not item:
return "" return ""
var resp: String = item.get_metadata(COL.TEXT)
var resp = item.get_metadata(COL.TEXT)
if resp is String:
return resp return resp
return ""
## Adds a new item to the tree, or returns the old item if it exists ## Adds a new item to the tree, or returns the old item if it exists