Skip to content

Commit

Permalink
Refresh port selector when resetting pages that use it
Browse files Browse the repository at this point in the history
  • Loading branch information
reilleya committed May 1, 2020
1 parent 212cfe8 commit 1cd0c79
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions ui/aboutWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(self):
self.reset()

def reset(self):
self.ui.widgetPortSelector.refreshPorts()
self.toggleConnectionButtons(False)
self.boardInfoCollector = None
self.ui.widgetDataAge.reset(False)
Expand Down
1 change: 1 addition & 0 deletions ui/calibrationSetupWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def __init__(self):
self.reset()

def reset(self):
self.ui.widgetPortSelector.refreshPorts()
self.errorCollector = ErrorCollector()
self.errorCollector.newError.connect(lambda: self.ui.pushButtonNext.setEnabled(False))
self.ui.widgetBasicInfo.loadProperties(BaseConverter())
Expand Down
1 change: 1 addition & 0 deletions ui/fireWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def reset(self):
self.pressureBuff = LowPass(5)

# Setup
self.ui.widgetPortSelector.refreshPorts()
self.toggleFields(self.setupFields, True)
self.ui.widgetTransducerSelector.reset()
self.ui.firingConfig.loadProperties(FiringConfig())
Expand Down
1 change: 1 addition & 0 deletions ui/mainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,5 @@ def exitResults(self):
self.gotoStartPage()

def gotoAboutPage(self):
self.ui.pageAbout.reset()
self.gotoPage(MainWindowPages.ABOUT)
1 change: 1 addition & 0 deletions ui/recvResultsWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def __init__(self):
self.reset()

def reset(self):
self.ui.widgetPortSelector.refreshPorts()
self.ui.widgetMotorConfig.loadProperties(MotorConfig())
self.ui.widgetTransducerSelector.reset()
self.ui.lineEditInitialResults.setText('0 s')
Expand Down

0 comments on commit 1cd0c79

Please sign in to comment.