Fixed text string
Some checks failed
Build ES-DE / Building_RetroDECK-ES-DE (push) Has been cancelled

This commit is contained in:
XargonWan 2024-10-30 23:20:56 +09:00
parent c20f78822c
commit 876b661c95

View file

@ -2364,12 +2364,12 @@ void GuiMenu::addVersionInfo()
// Attempt to open the version file and read a line into retroDeckVersion; // Attempt to open the version file and read a line into retroDeckVersion;
// 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()) {
mVersion.setText("RetroDECK" + " " + retroDeckVersion); mVersion.setText("RetroDECK " + retroDeckVersion);
LOG(LogInfo) << "RetroDECK version read OK."; LOG(LogInfo) << "RetroDECK version read OK.";
} 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);
} }
#else // If RETRODECK is NOT defined, execute this block #else // If RETRODECK is NOT defined, execute this block