(Android) Added the version code to the GuiMenu version string also for prereleases

This commit is contained in:
Leon Styhre 2024-06-16 22:05:54 +02:00
parent 8b5a447da6
commit 14064ac603
2 changed files with 7 additions and 2 deletions

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
//
// ES-DE
// ES-DE Frontend
// GuiMenu.cpp
//
// Main menu.
@ -2116,8 +2116,13 @@ void GuiMenu::addVersionInfo()
const std::string applicationName {"ES-DE"};
#if defined(IS_PRERELEASE)
#if defined(__ANDROID__)
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" +
std::to_string(ANDROID_VERSION_CODE) + " (Built " + __DATE__ + ")");
#else
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) +
" (Built " + __DATE__ + ")");
#endif
#else
#if defined(__ANDROID__)
mVersion.setText(applicationName + " " + Utils::String::toUpper(PROGRAM_VERSION_STRING) + "-" +

View file

@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT
//
// ES-DE
// ES-DE Frontend
// GuiMenu.h
//
// Main menu.