From 9fbfbc74325cb0bb244cc9ca5096671db53882c6 Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Thu, 25 Jun 2020 05:07:07 +0300 Subject: [PATCH] Fix wrong "Export" text changing on the File menu --- src/Main.gd | 2 +- src/UI/Dialogs/ExportDialog.gd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main.gd b/src/Main.gd index eb0001d5c..a56b3dbe9 100644 --- a/src/Main.gd +++ b/src/Main.gd @@ -186,7 +186,7 @@ func _on_BackupConfirmation_confirmed(project_paths : Array, backup_paths : Arra $ExportDialog.directory_path = OpenSave.current_save_paths[0].get_base_dir() $ExportDialog.was_exported = false Global.file_menu.get_popup().set_item_text(3, tr("Save") + " %s" % OpenSave.current_save_paths[0].get_file()) - Global.file_menu.get_popup().set_item_text(6, tr("Export")) + Global.file_menu.get_popup().set_item_text(5, tr("Export")) func _on_BackupConfirmation_delete(project_paths : Array, backup_paths : Array) -> void: diff --git a/src/UI/Dialogs/ExportDialog.gd b/src/UI/Dialogs/ExportDialog.gd index 95fa18395..807f73396 100644 --- a/src/UI/Dialogs/ExportDialog.gd +++ b/src/UI/Dialogs/ExportDialog.gd @@ -355,7 +355,7 @@ func export_processed_images(ignore_overwrites : bool) -> void: # Store settings for quick export and when the dialog is opened again was_exported = true store_export_settings() - Global.file_menu.get_popup().set_item_text(6, tr("Export") + " %s" % (file_name + file_format_string(file_format))) + Global.file_menu.get_popup().set_item_text(5, tr("Export") + " %s" % (file_name + file_format_string(file_format))) Global.notification_label("File(s) exported") hide()