fix: weird bug when clicking everywhere fast
This commit is contained in:
parent
e76608a67e
commit
cffc879ba7
@ -36,8 +36,11 @@ func get_current_text() -> String:
|
||||
var item := get_selected()
|
||||
if not item:
|
||||
return ""
|
||||
var resp: String = item.get_metadata(COL.TEXT)
|
||||
|
||||
var resp = item.get_metadata(COL.TEXT)
|
||||
if resp is String:
|
||||
return resp
|
||||
return ""
|
||||
|
||||
|
||||
## Adds a new item to the tree, or returns the old item if it exists
|
||||
|
Loading…
Reference in New Issue
Block a user