Skip to content

Commit

Permalink
ref: perform update check after version print (ci failed due to runni…
Browse files Browse the repository at this point in the history
…ng threads)
  • Loading branch information
paulmueller committed Nov 18, 2020
1 parent 620ed5e commit 073bff2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions shapeout2/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 073bff2

Please sign in to comment.