1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-23 05:53:14 +00:00

fix some typos

This commit is contained in:
Variable 2024-08-31 22:02:52 +05:00
parent a4bcd6c5d6
commit de308c88c9
2 changed files with 6 additions and 0 deletions

View file

@ -711,6 +711,8 @@ func modify_texture_resource(image: Image, resource_name: StringName, update_cal
resource_proj.frames[0].cels[0].set_content(image)
resource_proj.resource_updated.connect(update_callable)
Global.projects.append(resource_proj)
Global.tabs.current_tab = Global.tabs.get_tab_count() - 1
Global.canvas.camera_zoom()
func _ready() -> void:

View file

@ -547,6 +547,10 @@ func _on_open_last_project_file_menu_option_pressed() -> void:
func _save_project_file() -> void:
if Global.current_project is ResourceProject:
Global.current_project.resource_updated.emit(Global.current_project)
if Global.current_project.has_changed:
Global.current_project.has_changed = false
Global.notification_label("Resource Updated")
return
var path: String = Global.current_project.save_path
if path == "":
Global.control.show_save_dialog()