1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-31 07:29:49 +00:00

Silence already connected signal errors in the tile mode offsets dialog

This commit is contained in:
Emmanouil Papadeas 2024-08-12 02:36:45 +03:00
parent c4beee6f41
commit 6e360505e3

View file

@ -18,10 +18,12 @@ func _ready() -> void:
func _project_about_to_switch() -> void: func _project_about_to_switch() -> void:
if Global.current_project.resized.is_connected(change_mask):
Global.current_project.resized.disconnect(change_mask) Global.current_project.resized.disconnect(change_mask)
func _project_switched() -> void: func _project_switched() -> void:
if not Global.current_project.resized.is_connected(change_mask):
Global.current_project.resized.connect(change_mask) Global.current_project.resized.connect(change_mask)