From bbb5600c980a356d47d0cf2197af15168f88b042 Mon Sep 17 00:00:00 2001 From: pax Date: Sun, 5 Apr 2026 02:18:21 -0500 Subject: [PATCH] Show/hide slideshow actions when switching tabs with slideshow open --- booru_viewer/gui/app.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/booru_viewer/gui/app.py b/booru_viewer/gui/app.py index afa4b74..06863cf 100644 --- a/booru_viewer/gui/app.py +++ b/booru_viewer/gui/app.py @@ -844,7 +844,12 @@ class BooruApp(QMainWindow): if self._fullscreen_window and self._fullscreen_window.isVisible(): self._preview._video_player.stop() self._fullscreen_window.set_media(path, info) - self._update_fullscreen_state() + # Show/hide action buttons based on current tab + show = self._stack.currentIndex() != 2 + self._fullscreen_window._bookmark_btn.setVisible(show) + self._fullscreen_window._save_btn.setVisible(show) + if show: + self._update_fullscreen_state() def _update_fullscreen_state(self) -> None: """Update slideshow button states for the current post."""