From a93a8bc70fdc7fdea42ff22985f059a45c7b2075 Mon Sep 17 00:00:00 2001 From: pax Date: Sun, 5 Apr 2026 23:40:17 -0500 Subject: [PATCH] Pause video when opening in external application --- booru_viewer/gui/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/booru_viewer/gui/app.py b/booru_viewer/gui/app.py index 43bbe75..de5051e 100644 --- a/booru_viewer/gui/app.py +++ b/booru_viewer/gui/app.py @@ -1886,6 +1886,10 @@ class BooruApp(QMainWindow): from ..core.cache import cached_path_for, is_cached path = cached_path_for(post.file_url) if path.exists(): + # Pause any playing video before opening externally + self._preview._video_player._player.pause() + if self._fullscreen_window and self._fullscreen_window.isVisible(): + self._fullscreen_window._video._player.pause() QDesktopServices.openUrl(QUrl.fromLocalFile(str(path))) else: self._status.showMessage("Image not cached yet — double-click to download first")