Skip to content

Commit f8a64f5

Browse files
committed
Only remove last Laue spot when back pressed
This was previously removing all Laue spots in the current detector when the back button was pressed. Only remove the last Laue spot. Signed-off-by: Patrick Avery <[email protected]>
1 parent 4c1eed7 commit f8a64f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hexrd/ui/calibration/calibration_runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,4 +420,5 @@ def last_point_removed(self):
420420
self.current_data_list.pop(-1)
421421
elif self.active_overlay_type == OverlayType.laue:
422422
self.decrement_overlay_data_index()
423-
self.current_data_list.clear()
423+
if self.current_data_list:
424+
self.current_data_list.pop(-1)

0 commit comments

Comments
 (0)