From a176622b188d5bbc924448aadcc178b4112bbc36 Mon Sep 17 00:00:00 2001 From: Variable <77773850+Variable-ind@users.noreply.github.com> Date: Wed, 14 Jun 2023 02:10:36 +0500 Subject: [PATCH] Fix Ok button Text of Save and Export Dialog (#876) to "Save" (also changes to "Save & Quit" when needed) and "Export" --- src/Main.gd | 1 + src/UI/Dialogs/ExportDialog.gd | 1 + src/UI/TopMenuContainer/TopMenuContainer.gd | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Main.gd b/src/Main.gd index b076c0651db7..4ba23971b554 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -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) diff --git a/src/UI/Dialogs/ExportDialog.gd b/src/UI/Dialogs/ExportDialog.gd index 72a7228531a5..8a02da99126f 100644 --- a/src/UI/Dialogs/ExportDialog.gd +++ b/src/UI/Dialogs/ExportDialog.gd @@ -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 diff --git a/src/UI/TopMenuContainer/TopMenuContainer.gd b/src/UI/TopMenuContainer/TopMenuContainer.gd index 1e3d6b74fa86..129a0eb33a8c 100644 --- a/src/UI/TopMenuContainer/TopMenuContainer.gd +++ b/src/UI/TopMenuContainer/TopMenuContainer.gd @@ -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")