Fixed an issue where the accept button would be shown in the scraper help system when it shouldn't.

This commit is contained in:
Leon Styhre 2021-01-06 21:57:39 +01:00
parent 077a0e0e2c
commit 9eb1cfd66a

View file

@ -769,7 +769,8 @@ std::vector<HelpPrompt> GuiScraperSearch::getHelpPrompts()
prompts.push_back(HelpPrompt("y", "refine search")); prompts.push_back(HelpPrompt("y", "refine search"));
if (mScrapeCount > 1) if (mScrapeCount > 1)
prompts.push_back(HelpPrompt("x", "skip")); prompts.push_back(HelpPrompt("x", "skip"));
if (mFoundGame) if (mFoundGame && (mRefinedSearch || mSearchType != ACCEPT_SINGLE_MATCHES ||
(mSearchType == ACCEPT_SINGLE_MATCHES && mScraperResults.size() > 1)))
prompts.push_back(HelpPrompt("a", "accept result")); prompts.push_back(HelpPrompt("a", "accept result"));
return prompts; return prompts;