Fixed an issue where the screensaver would start when it shouldn't.

Also changed so that the screensaver is reactivated after scraping only after the user has confirmed the scraping results.
This commit is contained in:
Leon Styhre 2020-08-07 13:07:36 +02:00
parent 004d9dfa9d
commit 11727a1392
2 changed files with 8 additions and 7 deletions

View file

@ -167,18 +167,19 @@ void GuiScraperMulti::finish()
ss << "NO GAMES WERE SCRAPED";
}
else {
ss << mTotalSuccessful << " GAME" << ((mTotalSuccessful > 1) ? "S" : "") <<
" SUCCESSFULLY SCRAPED";
ss << mTotalSuccessful << " GAME" <<
((mTotalSuccessful > 1) ? "S" : "") << " SUCCESSFULLY SCRAPED";
if (mTotalSkipped > 0)
ss << "\n" << mTotalSkipped << " GAME" << ((mTotalSkipped > 1) ? "S" : "") <<
" SKIPPED";
ss << "\n" << mTotalSkipped << " GAME"
<< ((mTotalSkipped > 1) ? "S" : "") << " SKIPPED";
}
mWindow->pushGui(new GuiMsgBox(mWindow, getHelpStyle(), ss.str(), "OK", [&] {
delete this; }));
mIsProcessing = false;
delete this;
}));
mIsProcessing = false;
PowerSaver::resume();
}

View file

@ -274,7 +274,7 @@ void Window::render()
if (mTimeSinceLastInput >= screensaverTime && screensaverTime != 0) {
if (mGameLaunchedState)
mTimeSinceLastInput = 0;
else
else if (!isProcessing() && !mScreenSaver->isScreenSaverActive())
startScreenSaver();
}