mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Check whether the the on_visibility changes signal is connected before attempting to connect it in data manager's main panel.
This commit is contained in:
parent
cdd8d73686
commit
58d707c695
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user