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

View file

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