Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Ok button Text of Save and Export Dialog #876

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/UI/Dialogs/ExportDialog.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/UI/TopMenuContainer/TopMenuContainer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down