Force slideshow to open on same monitor as main window
This commit is contained in:
parent
eede01ff51
commit
385acc2a0a
@ -84,6 +84,10 @@ class FullscreenPreview(QMainWindow):
|
||||
|
||||
from PySide6.QtWidgets import QApplication
|
||||
QApplication.instance().installEventFilter(self)
|
||||
# Show on the same monitor as the parent window
|
||||
if parent and parent.screen():
|
||||
self.setScreen(parent.screen())
|
||||
self.setGeometry(parent.screen().geometry())
|
||||
self.showFullScreen()
|
||||
|
||||
def update_state(self, bookmarked: bool, saved: bool) -> None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user