diff --git a/qt/applications/workbench/workbench/app/mainwindow.py b/qt/applications/workbench/workbench/app/mainwindow.py index 74ce4f8cd503eebd3b32f929272759e8cef76331..ed65fa8d4f6f7ee829e2cd42417e8327c5cc6103 100644 --- a/qt/applications/workbench/workbench/app/mainwindow.py +++ b/qt/applications/workbench/workbench/app/mainwindow.py @@ -38,7 +38,7 @@ requirements.check_qt() # Qt # ----------------------------------------------------------------------------- from qtpy.QtCore import (QEventLoop, Qt, QCoreApplication, QPoint, QSize) # noqa -from qtpy.QtGui import (QColor, QPixmap) # noqa +from qtpy.QtGui import (QColor, QPixmap, QGuiApplication) # noqa from qtpy.QtWidgets import (QApplication, QDesktopWidget, QFileDialog, QMainWindow, QSplashScreen) # noqa from mantidqt.utils.qt import plugins, widget_updates_disabled # noqa @@ -87,7 +87,9 @@ atexit.register(qCleanupResources) def _get_splash_image_name(): - width = QApplication.desktop().availableGeometry().width() + # gets the width of the screen where the main window was initialised + width = QGuiApplication.primaryScreen().size().width() + if width > 2048: return ':/images/MantidSplashScreen_4k.jpg' else: