Check whether the confirmed signal is already connected in the add folder dialog.

This commit is contained in:
Relintai 2022-01-26 21:14:30 +01:00
parent 8b486e156b
commit 1ee8220992

View File

@ -9,7 +9,8 @@ var _module = null
signal folders_created
func _enter_tree():
connect("confirmed", self, "on_confirmed")
if !is_connected("confirmed", self, "on_confirmed"):
connect("confirmed", self, "on_confirmed")
func setup() -> void:
var entry_container : Control = $ScrollContainer/VBoxContainer