Hide .0 patch version for builds with pre-release version status only

This commit is contained in:
Serhii Snitsaruk 2024-06-03 22:35:51 +02:00
parent adff6bd08c
commit 7c0c81d141
No known key found for this signature in database
GPG Key ID: A965EF8799FFEC2D
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@
inline String GET_LIMBOAI_VERSION() {
String version = itos(LIMBOAI_VERSION_MAJOR) + "." + itos(LIMBOAI_VERSION_MINOR);
if (LIMBOAI_VERSION_PATCH != 0) {
if (LIMBOAI_VERSION_PATCH != 0 || strlen(LIMBOAI_VERSION_STATUS) == 0) {
version += "." + itos(LIMBOAI_VERSION_PATCH);
}
if (strlen(LIMBOAI_VERSION_STATUS) > 0) {