- fixed splash screen position on current screen when using multiple screens

This commit is contained in:
Marius Stanciu
2021-08-11 15:36:59 +03:00
parent 061e109e45
commit 40034540cf

View File

@@ -891,7 +891,8 @@ class App(QtCore.QObject):
# move splashscreen to the current monitor
# desktop = QtWidgets.QApplication.desktop()
# screen = desktop.screenNumber(QtGui.QCursor.pos())
screen = QtWidgets.QWidget.screen(self.splash)
# screen = QtWidgets.QWidget.screen(self.splash)
screen = QtWidgets.QApplication.screenAt(QtGui.QCursor.pos())
current_screen_center = screen.availableGeometry().center()
self.splash.move(current_screen_center - self.splash.rect().center())