From 94d217c957183844c6267fa34d6b5778123f88f8 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 17 Sep 2020 22:36:45 +0200 Subject: Make cursor visible if next video fails to play --- src/QuickMedia.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 95a0a63..f5aaea5 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1583,10 +1583,11 @@ namespace QuickMedia { } else if(update_err == VideoPlayer::Error::EXITED && video_player->exit_status == 0) { fprintf(stderr, "mpv exited with status 0, the user most likely closed mpv with 'q'\n"); current_page = previous_page; + break; } else if(update_err != VideoPlayer::Error::OK) { show_notification("Video player", "The video player failed to play the video", Urgency::CRITICAL); current_page = previous_page; - return; + break; } // TODO: Show loading video animation. load_video needs to be made asynchronous first -- cgit v1.2.3