Merge pull request #1325 from leon-richardt/fix-version-string-windows

[Bug Fix] Fix Version String on Windows
This commit is contained in:
pajlada 2019-09-22 10:37:10 +02:00 committed by GitHub
commit 91f8961f39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,11 +16,11 @@ Version::Version()
this->commitHash_ =
QString(FROM_EXTERNAL_DEFINE(CHATTERINO_GIT_HASH)).remove('"');
// Date of build
// Date of build, this is depended on the format not changing
#ifdef CHATTERINO_NIGHTLY_VERSION_STRING
this->dateOfBuild_ =
QString(FROM_EXTERNAL_DEFINE(CHATTERINO_NIGHTLY_VERSION_STRING))
.remove('"');
.remove('"').split(' ')[0];
#endif
// "Full" version string, as displayed in window title
@ -31,11 +31,6 @@ Version::Version()
}
this->fullVersion_ += this->version_;
if (Modes::getInstance().isNightly)
{
this->fullVersion_ += this->dateOfBuild_;
}
}
const Version &Version::getInstance()