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

Fix Ok button Text of Save and Export Dialog (#876)

to "Save" (also changes to "Save & Quit" when needed) and "Export"
This commit is contained in:
Variable 2023-06-14 02:10:36 +05:00 committed by GitHub
parent 8d5122f54c
commit a176622b18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View file

@ -343,6 +343,7 @@ func _on_QuitAndSaveDialog_custom_action(action: String) -> void:
func _on_QuitAndSaveDialog_confirmed() -> void:
is_quitting_on_save = true
Global.save_sprites_dialog.get_ok().text = "Save & Exit"
Global.save_sprites_dialog.popup_centered()
quit_dialog.hide()
Global.dialog_open(true)

View file

@ -255,6 +255,7 @@ func set_export_progress_bar(value: float) -> void:
func _on_ExportDialog_about_to_show() -> void:
get_ok().text = "Export"
Global.canvas.selection.transform_content_confirm()
var project: Project = Global.current_project
# If we're on HTML5, don't let the user change the directory path

View file

@ -404,6 +404,7 @@ func _save_project_file_as() -> void:
save_dialog.popup_centered()
save_filename.text = Global.current_project.name
else:
Global.save_sprites_dialog.get_ok().text = "Save"
Global.save_sprites_dialog.popup_centered()
yield(get_tree(), "idle_frame")
yield(get_tree(), "idle_frame")