Do not display the original release date when the year is the same as the actual release date
This commit is contained in:
@@ -131,11 +131,11 @@ namespace UserInterface::ReleaseHelpers
|
||||
if (!releaseDate.isValid())
|
||||
return res;
|
||||
|
||||
if (originalReleaseDate.isValid() && originalReleaseDate != releaseDate)
|
||||
if (originalReleaseDate.isValid() && originalReleaseDate.year() != releaseDate.year())
|
||||
res = std::to_string(originalReleaseDate.year()) + " (" + std::to_string(releaseDate.year()) + ")";
|
||||
else
|
||||
res = std::to_string(releaseDate.year());
|
||||
|
||||
return res;
|
||||
}
|
||||
} // namespace UserInterface::ReleaseHelpers}
|
||||
} // namespace UserInterface::ReleaseHelpers
|
||||
|
||||
Reference in New Issue
Block a user