mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47: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:
|
||||
return
|
||||
|
||||
zoom_widget.connect("zoom_changed", self, "on_zoom_changed")
|
||||
connect("visibility_changed", self, "on_visibility_changed")
|
||||
if !zoom_widget.is_connected("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")
|
||||
|
||||
func on_visibility_changed() -> void:
|
||||
call_deferred("apply_zoom")
|
||||
|
Loading…
Reference in New Issue
Block a user