Only change slideshow volume when its window is focused
This commit is contained in:
parent
f8582e83fa
commit
27f4f0eb19
@ -155,7 +155,7 @@ class FullscreenPreview(QMainWindow):
|
|||||||
elif key == Qt.Key.Key_Comma and self._stack.currentIndex() == 1:
|
elif key == Qt.Key.Key_Comma and self._stack.currentIndex() == 1:
|
||||||
self._video._seek_relative(-5000)
|
self._video._seek_relative(-5000)
|
||||||
return True
|
return True
|
||||||
if event.type() == QEvent.Type.Wheel and self._stack.currentIndex() == 1:
|
if event.type() == QEvent.Type.Wheel and self._stack.currentIndex() == 1 and self.isActiveWindow():
|
||||||
delta = event.angleDelta().y()
|
delta = event.angleDelta().y()
|
||||||
if delta:
|
if delta:
|
||||||
vol = self._video._audio.volume()
|
vol = self._video._audio.volume()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user