Mercurial > minori
diff src/gui/widgets/anime_info.cc @ 250:c130f47f6f48
*: many many changes
e.g. the search page is actually implemented now!
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Sun, 04 Feb 2024 21:17:17 -0500 |
parents | 4d461ef7d424 |
children | b3549da699a6 |
line wrap: on
line diff
--- a/src/gui/widgets/anime_info.cc Wed Jan 24 20:18:59 2024 -0500 +++ b/src/gui/widgets/anime_info.cc Sun Feb 04 21:17:17 2024 -0500 @@ -35,12 +35,13 @@ * QString because QTextStream sucks and assumes * Latin1 (on Windows?) */ + const auto genres = anime.GetGenres(); details_data_s << Strings::ToQString(Translate::ToLocalString(anime.GetFormat())) << "\n" << anime.GetEpisodes() << "\n" - << Strings::ToQString(Translate::ToLocalString(anime.GetUserStatus())) << "\n" + << Strings::ToQString(Translate::ToLocalString(anime.GetAiringStatus())) << "\n" << Strings::ToQString(Translate::ToLocalString(anime.GetSeason())) << " " << anime.GetAirDate().GetYear().value_or(2000) << "\n" - << Strings::ToQString(Strings::Implode(anime.GetGenres(), ", ")) << "\n" + << Strings::ToQString((genres.size() > 1) ? Strings::Implode(genres, ", ") : "-") << "\n" << anime.GetAudienceScore() << "%"; _details->GetParagraph()->SetText(details_data);