Fix signal already connected errors.

This commit is contained in:
Relintai 2021-12-27 18:00:10 +01:00
parent ff2579bd04
commit e0cb83ffe2

View File

@ -16,7 +16,10 @@ func _enter_tree():
if !zoom_widget: if !zoom_widget:
return return
if !zoom_widget.is_connected("zoom_changed", self, "on_zoom_changed"):
zoom_widget.connect("zoom_changed", self, "on_zoom_changed") zoom_widget.connect("zoom_changed", self, "on_zoom_changed")
if !is_connected("visibility_changed", self, "on_visibility_changed"):
connect("visibility_changed", self, "on_visibility_changed") connect("visibility_changed", self, "on_visibility_changed")
func on_visibility_changed() -> void: func on_visibility_changed() -> void: