1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +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,11 +18,13 @@ func _ready() -> void:
func _project_about_to_switch() -> void:
Global.current_project.resized.disconnect(change_mask)
if Global.current_project.resized.is_connected(change_mask):
Global.current_project.resized.disconnect(change_mask)
func _project_switched() -> void:
Global.current_project.resized.connect(change_mask)
if not Global.current_project.resized.is_connected(change_mask):
Global.current_project.resized.connect(change_mask)
func _on_TileModeOffsetsDialog_about_to_show() -> void: