summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2021-06-08 00:51:18 +0300
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2021-06-08 17:30:37 +0300
commit293550f56ad732ce27d042f6fca8fe8476669d15 (patch)
treecc25d3703392c6388647f52ba2f5d3fb0d0eedf4 /editor/editor_node.cpp
parentd92e46233ca7236fd8d3ac49915e378b883298e4 (diff)
downloadredot-engine-293550f56ad732ce27d042f6fca8fe8476669d15.tar.gz
Separate version hash from version number in editor and project manager
When copy-pasting the version from About dialog to bug reports at GitHub, this makes the version hash linkable to commits at GitHub.
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 2e6ec88d8c..1c2fd50f0b 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -6632,7 +6632,7 @@ EditorNode::EditorNode() {
version_btn->set_text(VERSION_FULL_CONFIG);
String hash = String(VERSION_HASH);
if (hash.length() != 0) {
- hash = "." + hash.left(9);
+ hash = " " + vformat("[%s]", hash.left(9));
}
// Set the text to copy in metadata as it slightly differs from the button's text.
version_btn->set_meta(META_TEXT_TO_COPY, "v" VERSION_FULL_BUILD + hash);