From e7842fb4eec3a70ffcd1451118ec449efad03b5d Mon Sep 17 00:00:00 2001 From: blinry Date: Thu, 29 Oct 2020 17:39:26 +0100 Subject: [PATCH] Show commit ID in file browser --- scenes/file_browser.gd | 1 + scenes/node.gd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/scenes/file_browser.gd b/scenes/file_browser.gd index 1b4e934..9f8a156 100644 --- a/scenes/file_browser.gd +++ b/scenes/file_browser.gd @@ -108,6 +108,7 @@ func _set_commit(new_commit): func _set_mode(new_mode): mode = new_mode + if save_button: save_button.visible = mode == FileBrowserMode.WORKING_DIRECTORY text_edit.readonly = not mode == FileBrowserMode.WORKING_DIRECTORY diff --git a/scenes/node.gd b/scenes/node.gd index c782412..16e970e 100644 --- a/scenes/node.gd +++ b/scenes/node.gd @@ -69,7 +69,7 @@ func type_set(new_type): type = new_type if type == "commit" and file_browser: file_browser.commit = self - file_browser.title = "Commit" + file_browser.title = "Commit " + id if type != "ref": $ID.text = $ID.text.substr(0,8) z_index = -1