Skip to content

Commit 4f76daf

Browse files
committed
Only show recording option in menu if not using PV
1 parent 01510e3 commit 4f76daf

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

microscope/plugins/record_plugin.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,11 @@ def mouse_release_event(self, event: QMouseEvent):
270270
def context_menu_entry(self):
271271
actions = []
272272
label = "Stop recording" if self.recording else "Start recording"
273-
if self.recording:
274-
actions.append(self.stop_record_action)
275-
else:
276-
actions.append(self.start_record_action)
273+
if not self.use_epics_pv:
274+
if self.recording:
275+
actions.append(self.stop_record_action)
276+
else:
277+
actions.append(self.start_record_action)
277278
return actions
278279

279280
def _set_record(self, start):

0 commit comments

Comments
 (0)