mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-25 14:19:19 +01:00
Fix signal already connected errors.
This commit is contained in:
parent
ff2579bd04
commit
e0cb83ffe2
@ -16,8 +16,11 @@ func _enter_tree():
|
|||||||
if !zoom_widget:
|
if !zoom_widget:
|
||||||
return
|
return
|
||||||
|
|
||||||
zoom_widget.connect("zoom_changed", self, "on_zoom_changed")
|
if !zoom_widget.is_connected("zoom_changed", self, "on_zoom_changed"):
|
||||||
connect("visibility_changed", self, "on_visibility_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")
|
||||||
|
|
||||||
func on_visibility_changed() -> void:
|
func on_visibility_changed() -> void:
|
||||||
call_deferred("apply_zoom")
|
call_deferred("apply_zoom")
|
||||||
|
Loading…
Reference in New Issue
Block a user