fix opening recent decks with shortened paths

This commit is contained in:
Lera Elvoé 2023-12-13 18:48:14 +03:00
parent 6c804851a7
commit aff31ce442
No known key found for this signature in database

View file

@ -100,7 +100,7 @@ func _on_file_id_pressed(id: int) -> void:
FileMenuId.CLOSE: FileMenuId.CLOSE:
close_current_tab() close_current_tab()
_ when id in range(FileMenuId.RECENTS, FileMenuId.RECENTS + max_recents + 1): _ when id in range(FileMenuId.RECENTS, FileMenuId.RECENTS + max_recents + 1):
open_deck_at_path(file_popup_menu.get_item_text(id)) open_deck_at_path(recent_files[id - FileMenuId.RECENTS - 1])
## Adds an empty [DeckRendererGraphEdit] with a corresponding [Deck] for it's data. ## Adds an empty [DeckRendererGraphEdit] with a corresponding [Deck] for it's data.
func add_empty_deck() -> void: func add_empty_deck() -> void: