Move "Recent projects" up, just below "Open last project" in the File menu

This commit is contained in:
Manolis Papadeas 2020-10-29 22:33:15 +02:00
parent 00a4722966
commit 7dd9b36cdc
5 changed files with 11 additions and 11 deletions

View file

@ -196,7 +196,7 @@ func export_processed_images(ignore_overwrites: bool, export_dialog: AcceptDialo
# Store settings for quick export and when the dialog is opened again
was_exported = true
Global.current_project.was_exported = true
Global.file_menu.get_popup().set_item_text(5, tr("Export") + " %s" % (file_name + file_format_string(file_format)))
Global.file_menu.get_popup().set_item_text(6, tr("Export") + " %s" % (file_name + file_format_string(file_format)))
# Only show when not exporting gif - gif export finishes in thread
if not (current_tab == ExportTab.ANIMATION and animation_type == AnimationType.ANIMATED):

View file

@ -117,8 +117,8 @@ func open_pxo_file(path : String, untitled_backup : bool = false) -> void:
Export.file_name = path.get_file().trim_suffix(".pxo")
Export.directory_path = path.get_base_dir()
Export.was_exported = false
Global.file_menu.get_popup().set_item_text(3, tr("Save") + " %s" % path.get_file())
Global.file_menu.get_popup().set_item_text(5, tr("Export"))
Global.file_menu.get_popup().set_item_text(4, tr("Save") + " %s" % path.get_file())
Global.file_menu.get_popup().set_item_text(6, tr("Export"))
Global.save_project_to_recent_list(path)
@ -337,7 +337,7 @@ func save_pxo_file(path : String, autosave : bool, use_zstd_compression := true,
Export.directory_path = path.get_base_dir()
Export.was_exported = false
project.was_exported = false
Global.file_menu.get_popup().set_item_text(3, tr("Save") + " %s" % path.get_file())
Global.file_menu.get_popup().set_item_text(4, tr("Save") + " %s" % path.get_file())
Global.save_project_to_recent_list(path)