From aff31ce442744e1aecf8bcbbedba938300b90662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Wed, 13 Dec 2023 18:48:14 +0300 Subject: [PATCH] fix opening recent decks with shortened paths --- graph_node_renderer/deck_holder_renderer.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph_node_renderer/deck_holder_renderer.gd b/graph_node_renderer/deck_holder_renderer.gd index fa6fe2a..b95072c 100644 --- a/graph_node_renderer/deck_holder_renderer.gd +++ b/graph_node_renderer/deck_holder_renderer.gd @@ -100,7 +100,7 @@ func _on_file_id_pressed(id: int) -> void: FileMenuId.CLOSE: close_current_tab() _ 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. func add_empty_deck() -> void: