From 1ee82209928620c638bfa28b2d6185dca702b6f3 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 26 Jan 2022 21:14:30 +0100 Subject: [PATCH] Check whether the confirmed signal is already connected in the add folder dialog. --- game/addons/data_manager/panels/AddFolderDialog.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/addons/data_manager/panels/AddFolderDialog.gd b/game/addons/data_manager/panels/AddFolderDialog.gd index ecb78f28..608c7146 100644 --- a/game/addons/data_manager/panels/AddFolderDialog.gd +++ b/game/addons/data_manager/panels/AddFolderDialog.gd @@ -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