We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
BaseDataPanel.delete_metadata
1 parent a7be535 commit b85661aCopy full SHA for b85661a
cdl/core/gui/panel/base.py
@@ -583,13 +583,13 @@ def delete_metadata(
583
refresh_plot: Refresh plot. Defaults to True.
584
keep_roi: Keep regions of interest, if any. Defaults to None (ask user).
585
"""
586
- if execenv.unattended:
587
- keep_roi = False
588
sel_objs = self.objview.get_sel_objects(include_groups=True)
589
# Check if there are regions of interest first:
590
roi_backup: dict[TypeObj, np.ndarray] = {}
591
if any(obj.roi is not None for obj in sel_objs):
592
- if keep_roi is None:
+ if execenv.unattended and keep_roi is None:
+ keep_roi = False
+ elif keep_roi is None:
593
answer = QW.QMessageBox.warning(
594
self,
595
_("Delete metadata"),
0 commit comments