Fix video position not restoring on slideshow close

Emit closed signal before stopping video so the position
can be read in _on_fullscreen_closed.
This commit is contained in:
pax 2026-04-05 03:00:44 -05:00
parent 558c07877b
commit d4ee2b2ec1

View File

@ -176,8 +176,8 @@ class FullscreenPreview(QMainWindow):
def closeEvent(self, event) -> None:
from PySide6.QtWidgets import QApplication
QApplication.instance().removeEventFilter(self)
self._video.stop()
self.closed.emit()
self._video.stop()
super().closeEvent(event)