1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Emit project_changed and cel_changed signals when opening a project that replaces the old one

This commit is contained in:
Manolis Papadeas 2023-05-06 20:31:52 +03:00
parent d266c87269
commit aa47133f9f

View file

@ -176,6 +176,8 @@ func open_pxo_file(path: String, untitled_backup: bool = false, replace_empty: b
file.close()
if empty_project:
new_project.change_project()
Global.emit_signal("project_changed")
Global.emit_signal("cel_changed")
else:
Global.projects.append(new_project)
Global.tabs.current_tab = Global.tabs.get_tab_count() - 1