Privacy screen hides slideshow and pauses video, update keybinds

- Ctrl+P now hides slideshow window and pauses all video playback
- Slideshow restored when privacy screen is toggled off
- README keybinds: arrow keys + hjkl for preview navigation
This commit is contained in:
pax 2026-04-05 04:48:41 -05:00
parent d87a060537
commit 1cc7bc06c1
2 changed files with 12 additions and 2 deletions

View File

@ -154,9 +154,9 @@ Categories=Graphics;
|-----|--------|
| Scroll wheel | Zoom |
| Middle click / `0` | Reset view |
| Left / Right | Previous / next post |
| Arrow keys / `h`/`j`/`k`/`l` | Navigate posts |
| `,` / `.` | Seek 5s back / forward (video) |
| `Space` | Play / pause (video) |
| `Space` | Play / pause (video, hover to activate) |
| Right click | Context menu (bookmark, save, slideshow) |
### Slideshow

View File

@ -1609,8 +1609,18 @@ class BooruApp(QMainWindow):
self._privacy_overlay.raise_()
self._privacy_overlay.show()
self.setWindowTitle("booru-viewer")
# Pause preview video
if self._preview._stack.currentIndex() == 1:
self._preview._video_player._player.pause()
# Hide and pause slideshow
if self._fullscreen_window and self._fullscreen_window.isVisible():
if self._fullscreen_window._stack.currentIndex() == 1:
self._fullscreen_window._video._player.pause()
self._fullscreen_window.hide()
else:
self._privacy_overlay.hide()
if self._fullscreen_window:
self._fullscreen_window.show()
def resizeEvent(self, event) -> None:
super().resizeEvent(event)