Skip to content

Commit

Permalink
Even more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSullivan7 committed Feb 16, 2024
1 parent e6b38bc commit e3e65d4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mantidimaging/gui/windows/spectrum_viewer/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,10 @@ def set_binning_visibility(self) -> None:
self.bin_step_spinBox.setHidden(hide_binning)

def set_roi_properties(self) -> None:
if not any([spinbox.setEnabled(False) for spinbox in self.roiPropertiesSpinBoxes.values()]):
[spinbox.setEnabled(True) for spinbox in self.roiPropertiesSpinBoxes.values()]
for spinbox in self.roiPropertiesSpinBoxes.values():
spinbox.setEnabled(True)
if self.presenter.export_mode == ExportMode.IMAGE_MODE:
self.current_roi = ROI_RITS
current_roi = self.presenter.model.get_roi(self.current_roi)
self.roiPropertiesGroupBox.setTitle(f"Roi Properties: {self.current_roi}")
roi_iter_order = ["Left", "Top", "Right", "Bottom"]
Expand Down

0 comments on commit e3e65d4

Please sign in to comment.