Merge pull request #29375 from Calinou/lengthen-version-git-hashes
Display longer Git hashes in engine version dialogs
This commit is contained in:
commit
8772beb451
3 changed files with 3 additions and 3 deletions
|
@ -131,7 +131,7 @@ EditorAbout::EditorAbout() {
|
|||
|
||||
String hash = String(VERSION_HASH);
|
||||
if (hash.length() != 0)
|
||||
hash = "." + hash.left(7);
|
||||
hash = "." + hash.left(9);
|
||||
|
||||
Label *about_text = memnew(Label);
|
||||
about_text->set_v_size_flags(Control::SIZE_SHRINK_CENTER);
|
||||
|
|
|
@ -1971,7 +1971,7 @@ ProjectManager::ProjectManager() {
|
|||
l = memnew(Label);
|
||||
String hash = String(VERSION_HASH);
|
||||
if (hash.length() != 0)
|
||||
hash = "." + hash.left(7);
|
||||
hash = "." + hash.left(9);
|
||||
l->set_text("v" VERSION_FULL_BUILD "" + hash);
|
||||
l->set_align(Label::ALIGN_CENTER);
|
||||
top_hb->add_child(l);
|
||||
|
|
|
@ -161,7 +161,7 @@ static String unescape_cmdline(const String &p_str) {
|
|||
static String get_full_version_string() {
|
||||
String hash = String(VERSION_HASH);
|
||||
if (hash.length() != 0)
|
||||
hash = "." + hash.left(7);
|
||||
hash = "." + hash.left(9);
|
||||
return String(VERSION_FULL_BUILD) + hash;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue