diff --git a/game/addons/data_manager/panels/MainPanel.gd b/game/addons/data_manager/panels/MainPanel.gd index 4e35e684..66b58447 100644 --- a/game/addons/data_manager/panels/MainPanel.gd +++ b/game/addons/data_manager/panels/MainPanel.gd @@ -22,7 +22,8 @@ var _initialized : bool = false var _plugin : EditorPlugin = null func _enter_tree(): - connect("visibility_changed", self, "on_visibility_changed") + if !is_connected("visibility_changed", self, "on_visibility_changed"): + connect("visibility_changed", self, "on_visibility_changed") func on_visibility_changed(): if _plugin && is_visible_in_tree() && !_initialized: