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:
parent
d87a060537
commit
1cc7bc06c1
@ -154,9 +154,9 @@ Categories=Graphics;
|
|||||||
|-----|--------|
|
|-----|--------|
|
||||||
| Scroll wheel | Zoom |
|
| Scroll wheel | Zoom |
|
||||||
| Middle click / `0` | Reset view |
|
| Middle click / `0` | Reset view |
|
||||||
| Left / Right | Previous / next post |
|
| Arrow keys / `h`/`j`/`k`/`l` | Navigate posts |
|
||||||
| `,` / `.` | Seek 5s back / forward (video) |
|
| `,` / `.` | Seek 5s back / forward (video) |
|
||||||
| `Space` | Play / pause (video) |
|
| `Space` | Play / pause (video, hover to activate) |
|
||||||
| Right click | Context menu (bookmark, save, slideshow) |
|
| Right click | Context menu (bookmark, save, slideshow) |
|
||||||
|
|
||||||
### Slideshow
|
### Slideshow
|
||||||
|
|||||||
@ -1609,8 +1609,18 @@ class BooruApp(QMainWindow):
|
|||||||
self._privacy_overlay.raise_()
|
self._privacy_overlay.raise_()
|
||||||
self._privacy_overlay.show()
|
self._privacy_overlay.show()
|
||||||
self.setWindowTitle("booru-viewer")
|
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:
|
else:
|
||||||
self._privacy_overlay.hide()
|
self._privacy_overlay.hide()
|
||||||
|
if self._fullscreen_window:
|
||||||
|
self._fullscreen_window.show()
|
||||||
|
|
||||||
def resizeEvent(self, event) -> None:
|
def resizeEvent(self, event) -> None:
|
||||||
super().resizeEvent(event)
|
super().resizeEvent(event)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user