From 073bff227ff03a567005dff7ba87027e949b48c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Wed, 18 Nov 2020 15:10:32 +0100 Subject: [PATCH] ref: perform update check after version print (ci failed due to running threads) --- shapeout2/gui/main.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/shapeout2/gui/main.py b/shapeout2/gui/main.py index 46b448b..4e20e4a 100644 --- a/shapeout2/gui/main.py +++ b/shapeout2/gui/main.py @@ -112,9 +112,6 @@ def __init__(self): self.init_quick_view() self.init_analysis_view() self.mdiArea.cascadeSubWindows() - # check for updates - do_update = int(self.settings.value("general/check for updates", 1)) - self.on_action_check_update(do_update) # check for updates if True # BLOCK MATRIX (wraps DataMatrix and PlotMatrix) # BlockMatrix appearance self.toolButton_dm.clicked.connect(self.on_data_matrix) @@ -158,13 +155,17 @@ def __init__(self): self.widget_ana_view.plot_changed.connect(self.adopt_plot) # slot signals self.widget_ana_view.slot_changed.connect(self.adopt_slot) - # check pyqtgraph version - self._check_pg_version() # if "--version" was specified, print the version and exit if "--version" in sys.argv: print(__version__) QtWidgets.QApplication.processEvents() sys.exit(0) + # check pyqtgraph version + self._check_pg_version() + # check for updates + do_update = int(self.settings.value("general/check for updates", 1)) + self.on_action_check_update(do_update) + # finalize self.show() self.raise_() self.activateWindow()