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.
This commit is contained in:
parent
b8033c41e1
commit
e0f54a963d
@ -1096,6 +1096,9 @@ class BooruApp(QMainWindow):
|
|||||||
if self._preview._stack.currentIndex() == 1:
|
if self._preview._stack.currentIndex() == 1:
|
||||||
video_pos = self._preview._video_player._player.position()
|
video_pos = self._preview._video_player._player.position()
|
||||||
# Clear the main preview — slideshow takes over
|
# 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.clear()
|
||||||
self._preview._info_label.setText(info)
|
self._preview._info_label.setText(info)
|
||||||
self._preview._current_path = path
|
self._preview._current_path = path
|
||||||
@ -1124,6 +1127,9 @@ class BooruApp(QMainWindow):
|
|||||||
self._update_fullscreen_state()
|
self._update_fullscreen_state()
|
||||||
|
|
||||||
def _on_fullscreen_closed(self) -> None:
|
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
|
# Grab video position before cleanup
|
||||||
video_pos = 0
|
video_pos = 0
|
||||||
if self._fullscreen_window and self._fullscreen_window._stack.currentIndex() == 1:
|
if self._fullscreen_window and self._fullscreen_window._stack.currentIndex() == 1:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user