From 55aaf85c5976c94c976a5dc1284c629669296cda Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Thu, 19 Oct 2023 15:05:20 -0500 Subject: [PATCH] Skip focus mode for powder/laue calibration It keeps on causing issues, so let's just disable it for now. We can enable it as long as we are sure that this issue will not happen again: https://github.com/HEXRD/hexrdgui/issues/1556 Signed-off-by: Patrick Avery --- hexrdgui/calibration/calibration_runner.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hexrdgui/calibration/calibration_runner.py b/hexrdgui/calibration/calibration_runner.py index ca08ed2c9..4c0a1151a 100644 --- a/hexrdgui/calibration/calibration_runner.py +++ b/hexrdgui/calibration/calibration_runner.py @@ -85,8 +85,13 @@ def validate(self): raise Exception('There are no refinable parameters') def enable_focus_mode(self, b): - HexrdConfig().enable_canvas_focus_mode.emit(b) - HexrdConfig().enable_canvas_toolbar.emit(not b) + # FIXME: We must avoid using focus mode until we can be sure + # that this issue will not happen again: https://github.com/HEXRD/hexrdgui/issues/1556 + # We *cannot* allow the GUI to remain disabled after calibration. + + # HexrdConfig().enable_canvas_focus_mode.emit(b) + # HexrdConfig().enable_canvas_toolbar.emit(not b) + pass def clear_all_overlay_picks(self): for overlay in self.active_overlays: