fix: don't create pixmap before qapp
CI / lint (pull_request) Successful in 40s
CI / test (3.11) (pull_request) Successful in 48s
CI / test (3.12) (pull_request) Successful in 44s
CI / test-with-beamline-plugins (pxi_bec) (pull_request) Successful in 58s
CI / test-with-coverage (pull_request) Successful in 1m7s
CI / test-with-beamline-plugins (pxiii_bec) (pull_request) Successful in 1m10s
CI / coverage-analysis (pull_request) Failing after 5s
CI / test-with-beamline-plugins (pxii_bec) (pull_request) Successful in 3m42s
CI / test (3.13) (pull_request) Successful in 4m10s
Docs build and publish / docker (push) Successful in 3s
CI / lint (push) Canceled after 39s
CI / test (3.11) (push) Canceled after 38s
CI / test (3.12) (push) Canceled after 33s
CI / test-with-beamline-plugins (pxii_bec) (push) Canceled after 28s
CI / test (3.13) (push) Canceled after 33s
CI / test-with-beamline-plugins (pxi_bec) (push) Canceled after 29s
CI / test-with-beamline-plugins (pxiii_bec) (push) Canceled after 24s
CI / test-with-coverage (push) Canceled after 23s
CI / coverage-analysis (push) Canceled after 0s
Build and Publish / release (push) Successful in 23s

This commit was merged in pull request #127.
This commit is contained in:
2026-08-05 14:52:35 +02:00
parent 6244d77a12
commit 214c204d06
+2 -2
View File
@@ -22,14 +22,14 @@ def main():
basedir = os.path.dirname(__file__)
icon_path = os.path.join(basedir, "graphics/aaregui_logo.svg")
banner_path = os.path.join(basedir, "graphics/aare_banner.png")
splash_pix = QtGui.QPixmap(banner_path)
splash = LoadingSplashScreen(splash_pix)
except Exception:
logger.exception("Failed to load resources for splash screen")
sys.exit(1)
try:
# define application
app = QApplication(sys.argv)
splash_pix = QtGui.QPixmap(banner_path)
splash = LoadingSplashScreen(splash_pix)
app.setWindowIcon(QtGui.QIcon(icon_path))
app.setApplicationName("AareGUI")
app.setApplicationVersion("0.3.1")