Skip to content

Commit 84c878f

Browse files
committed
Disable intensity menu in interactive mode
1 parent e59be5b commit 84c878f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mslice/plotting/plot_window/slice_plot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ def toggle_icut_button(self):
418418
self.plot_window.action_keep.setEnabled(False)
419419
self.plot_window.action_make_current.setEnabled(False)
420420
self.plot_window.action_flip_axis.setVisible(True)
421+
self.plot_window.menu_intensity.setDisabled(True)
421422
else:
422423
self.manager.picking_connected(True)
423424
self.plot_window.action_zoom_in.setEnabled(True)
@@ -428,6 +429,7 @@ def toggle_icut_button(self):
428429
self._canvas.setCursor(Qt.ArrowCursor)
429430
self.icut.set_icut_intensity_category(self.intensity_type)
430431
self.icut.store_icut_cut_upon_toggle_and_reset()
432+
self.plot_window.menu_intensity.setDisabled(False)
431433

432434
def toggle_icut(self):
433435
if self.icut is not None:

0 commit comments

Comments
 (0)