Skip to content

Commit

Permalink
Trim whitespace from console labels
Browse files Browse the repository at this point in the history
(accounting for the space character sorting trick)
  • Loading branch information
Aemiii91 committed Jul 11, 2022
1 parent 7890c84 commit 3d0b03e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/search/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void performSearch(Display* display, string keyword)

vector<RomEntry> result = db::searchEntries(name, keyword);
int subtotal = result.size();
string label = config.label + " (" + std::to_string(subtotal) + ")";
string label = trim(config.label) + " (" + std::to_string(subtotal) + ")";

if (subtotal <= 0)
continue;
Expand Down Expand Up @@ -113,7 +113,7 @@ void performSearch(Display* display, string keyword)
flipText(display, "Searching... " + std::to_string(current_emu) + "/" + std::to_string(total_emu));
}

flipText(display, "Compiling results...");
flipText(display, "Done");

string all_label = "All consoles (" + std::to_string(total) + ")";

Expand Down

0 comments on commit 3d0b03e

Please sign in to comment.