mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Added a popup notification if PDF manual rendering failed
Also removed two unnecessary navigation scroll sounds on PDF rendering failure
This commit is contained in:
parent
b60f86ae04
commit
8a6611a6f5
|
@ -89,7 +89,6 @@ bool PDFViewer::startPDFViewer(FileData* game)
|
|||
|
||||
if (!getDocumentInfo()) {
|
||||
LOG(LogError) << "PDFViewer: Couldn't load file \"" << mManualPath << "\"";
|
||||
NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND);
|
||||
ViewController::getInstance()->stopViewVideos();
|
||||
return false;
|
||||
}
|
||||
|
@ -99,7 +98,6 @@ bool PDFViewer::startPDFViewer(FileData* game)
|
|||
for (int i {1}; i <= mPageCount; ++i) {
|
||||
if (mPages.find(i) == mPages.end()) {
|
||||
LOG(LogError) << "Couldn't read information for page " << i << ", invalid PDF file?";
|
||||
NavigationSounds::getInstance().playThemeNavigationSound(SCROLLSOUND);
|
||||
ViewController::getInstance()->stopViewVideos();
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -923,6 +923,9 @@ void Window::startPDFViewer(FileData* game)
|
|||
|
||||
mRenderPDFViewer = true;
|
||||
}
|
||||
else {
|
||||
queueInfoPopup("ERROR: COULDN'T RENDER PDF FILE", 4000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue