diff --git a/es-app/src/guis/GuiScraperMulti.cpp b/es-app/src/guis/GuiScraperMulti.cpp index d2b07b0ce..067352199 100644 --- a/es-app/src/guis/GuiScraperMulti.cpp +++ b/es-app/src/guis/GuiScraperMulti.cpp @@ -235,6 +235,7 @@ void GuiScraperMulti::skip() mSearchQueue.pop(); mCurrentGame++; mTotalSkipped++; + mSearchComp->decreaseScrapeCount(); mSearchComp->unsetRefinedSearch(); doNextSearch(); } diff --git a/es-app/src/guis/GuiScraperSearch.cpp b/es-app/src/guis/GuiScraperSearch.cpp index 22ceac3ff..8873aed8d 100644 --- a/es-app/src/guis/GuiScraperSearch.cpp +++ b/es-app/src/guis/GuiScraperSearch.cpp @@ -568,7 +568,7 @@ bool GuiScraperSearch::input(InputConfig* config, Input input) } // Skip game, unless the result has already been accepted. - if (!mAcceptedResult && mScrapeCount > 1 && config->isMappedTo("x", input) && input.value != 0) + if (!mAcceptedResult && config->isMappedTo("x", input) && input.value) mSkipCallback(); return GuiComponent::input(config, input); @@ -589,6 +589,7 @@ void GuiScraperSearch::render(const glm::mat4& parentTrans) void GuiScraperSearch::returnResult(ScraperSearchResult result) { + mBlockAccept = true; mAcceptedResult = true; @@ -931,8 +932,7 @@ std::vector GuiScraperSearch::getHelpPrompts() std::vector prompts; prompts.push_back(HelpPrompt("y", "refine search")); - if (mScrapeCount > 1) - prompts.push_back(HelpPrompt("x", "skip")); + prompts.push_back(HelpPrompt("x", "skip")); if (mFoundGame && (mRefinedSearch || mSearchType != ACCEPT_SINGLE_MATCHES || (mSearchType == ACCEPT_SINGLE_MATCHES && mScraperResults.size() > 1))) prompts.push_back(HelpPrompt("a", "accept result")); diff --git a/es-app/src/guis/GuiScraperSearch.h b/es-app/src/guis/GuiScraperSearch.h index cdd86830e..449124ba0 100644 --- a/es-app/src/guis/GuiScraperSearch.h +++ b/es-app/src/guis/GuiScraperSearch.h @@ -69,7 +69,6 @@ public: } void setCancelCallback(const std::function& cancelCallback) { - mScrapeCount -= 1; mCancelCallback = cancelCallback; } @@ -80,6 +79,11 @@ public: HelpStyle getHelpStyle() override; void onSizeChanged() override; + void decreaseScrapeCount() + { + if (mScrapeCount > 0) + mScrapeCount--; + } void unsetRefinedSearch() { mRefinedSearch = false; } bool getRefinedSearch() { return mRefinedSearch; } bool getFoundGame() { return mFoundGame; }