Show/hide slideshow actions when switching tabs with slideshow open
This commit is contained in:
parent
fb42d53dbc
commit
bbb5600c98
@ -844,6 +844,11 @@ class BooruApp(QMainWindow):
|
|||||||
if self._fullscreen_window and self._fullscreen_window.isVisible():
|
if self._fullscreen_window and self._fullscreen_window.isVisible():
|
||||||
self._preview._video_player.stop()
|
self._preview._video_player.stop()
|
||||||
self._fullscreen_window.set_media(path, info)
|
self._fullscreen_window.set_media(path, info)
|
||||||
|
# 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()
|
self._update_fullscreen_state()
|
||||||
|
|
||||||
def _update_fullscreen_state(self) -> None:
|
def _update_fullscreen_state(self) -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user