Skip to content

Commit

Permalink
Only include section title on first chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Oct 5, 2020
1 parent 4c859df commit 60ed288
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/gui/dialogs/outro.cpp
Expand Up @@ -62,7 +62,11 @@ outro::outro(const game_classification& info)

for(std::size_t i = 0; i < num_chunks; ++i) {
std::stringstream ss;
ss << about.title << "\n";

// Only include section title on first chunk
if(i == 0) {
ss << about.title << "\n";
}

for(std::size_t k = i * chunk_size; k < std::min<unsigned>((i + 1) * chunk_size, num_names); ++k) {
ss << "\n<span size='xx-small'>" << about.names[k].first << "</span>";
Expand Down

0 comments on commit 60ed288

Please sign in to comment.