From aa47133f9fedd21feaf1d29229531c37aaecb936 Mon Sep 17 00:00:00 2001 From: Manolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 6 May 2023 20:31:52 +0300 Subject: [PATCH] Emit project_changed and cel_changed signals when opening a project that replaces the old one --- src/Autoload/OpenSave.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Autoload/OpenSave.gd b/src/Autoload/OpenSave.gd index 3e6be8939..18d2fca24 100644 --- a/src/Autoload/OpenSave.gd +++ b/src/Autoload/OpenSave.gd @@ -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