mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Enhanced version string on main menu
This commit is contained in:
parent
9a56464c6b
commit
4b55f361db
|
@ -2415,12 +2415,11 @@ void GuiMenu::addVersionInfo()
|
||||||
// also check that the line is not empty to ensure valid version information
|
// also check that the line is not empty to ensure valid version information
|
||||||
if (versionFile && std::getline(versionFile, retroDeckVersion) && !retroDeckVersion.empty()) {
|
if (versionFile && std::getline(versionFile, retroDeckVersion) && !retroDeckVersion.empty()) {
|
||||||
LOG(LogInfo) << "RetroDECK version read OK. Version: " + retroDeckVersion;
|
LOG(LogInfo) << "RetroDECK version read OK. Version: " + retroDeckVersion;
|
||||||
mVersion.setText("RetroDECK " + retroDeckVersion);
|
|
||||||
} else {
|
} else {
|
||||||
LOG(LogInfo) << "Error: Cannot read version from file or file is empty!";
|
LOG(LogInfo) << "Error: Cannot read version from file or file is empty!";
|
||||||
retroDeckVersion = "UNKNOWN";
|
retroDeckVersion = "UNKNOWN";
|
||||||
mVersion.setText("RetroDECK " + retroDeckVersion);
|
|
||||||
}
|
}
|
||||||
|
mVersion.setText("RetroDECK " + retroDeckVersion + " | ES-DE " + Utils::String::toUpper(PROGRAM_VERSION_STRING));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mVersion.setHorizontalAlignment(ALIGN_CENTER);
|
mVersion.setHorizontalAlignment(ALIGN_CENTER);
|
||||||
|
|
Loading…
Reference in a new issue