Skip to content

Commit

Permalink
Disable autocentering button when computing
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentRDC committed Jan 15, 2021
1 parent 7f52063 commit 171504e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions iris/gui/angular_average_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ def initiate_autocenter(self):
)
self._worker.results_signal.connect(self.set_center)
self._worker.in_progress_signal.connect(self.busy_indicator.toggle_animation)
self._worker.in_progress_signal.connect(self.autocenter_btn.setDisabled)
self._worker.start()

@QtCore.pyqtSlot(object)
Expand Down
1 change: 1 addition & 0 deletions iris/gui/symmetrize_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ def initiate_autocenter(self):
)
self._worker.results_signal.connect(self.set_center)
self._worker.in_progress_signal.connect(self.busy_indicator.toggle_animation)
self._worker.in_progress_signal.connect(self.autocenter_btn.setDisabled)
self._worker.start()

@QtCore.pyqtSlot(object)
Expand Down

0 comments on commit 171504e

Please sign in to comment.