The media viewer now only stops info popups if there is actually any media to display

This commit is contained in:
Leon Styhre 2023-08-11 19:38:38 +02:00
parent 60f0f64b57
commit 7ab8b82bcc
2 changed files with 2 additions and 1 deletions

View file

@ -52,6 +52,8 @@ bool MediaViewer::startMediaViewer(FileData* game)
if (!mHasVideo && !mHasImages)
return false;
Window::getInstance()->stopInfoPopup();
HelpStyle style;
style.font = Font::get(FONT_SIZE_MINI);
style.origin = {0.5f, 0.5f};

View file

@ -894,7 +894,6 @@ void Window::renderScreensaver()
void Window::startMediaViewer(FileData* game)
{
if (mMediaViewer) {
stopInfoPopup();
if (mMediaViewer->startMediaViewer(game)) {
setAllowTextScrolling(false);
setAllowFileAnimation(false);