From e0f54a963de3360aefe8c2b1508d4a8abb501166 Mon Sep 17 00:00:00 2001 From: pax Date: Sun, 5 Apr 2026 03:37:03 -0500 Subject: [PATCH] Show info panel with tags in preview area while slideshow is open Auto-shows the info panel when slideshow opens (filling the empty preview space with tags and post details). Restores previous visibility state when slideshow closes. --- booru_viewer/gui/app.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/booru_viewer/gui/app.py b/booru_viewer/gui/app.py index 45bac68..03931be 100644 --- a/booru_viewer/gui/app.py +++ b/booru_viewer/gui/app.py @@ -1096,6 +1096,9 @@ class BooruApp(QMainWindow): if self._preview._stack.currentIndex() == 1: video_pos = self._preview._video_player._player.position() # Clear the main preview — slideshow takes over + # Show info panel in the freed space + self._info_was_visible = self._info_panel.isVisible() + self._info_panel.show() self._preview.clear() self._preview._info_label.setText(info) self._preview._current_path = path @@ -1124,6 +1127,9 @@ class BooruApp(QMainWindow): self._update_fullscreen_state() def _on_fullscreen_closed(self) -> None: + # Restore info panel visibility + if not getattr(self, '_info_was_visible', False): + self._info_panel.hide() # Grab video position before cleanup video_pos = 0 if self._fullscreen_window and self._fullscreen_window._stack.currentIndex() == 1: