mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
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:
parent
004d9dfa9d
commit
11727a1392
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -274,7 +274,7 @@ void Window::render()
|
|||
if (mTimeSinceLastInput >= screensaverTime && screensaverTime != 0) {
|
||||
if (mGameLaunchedState)
|
||||
mTimeSinceLastInput = 0;
|
||||
else
|
||||
else if (!isProcessing() && !mScreenSaver->isScreenSaverActive())
|
||||
startScreenSaver();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue