From 8f2a7f49314af21d5501e32fc7ffb382faa92137 Mon Sep 17 00:00:00 2001 From: Patrick Avery Date: Fri, 7 Oct 2022 09:48:10 -0400 Subject: [PATCH] Do not switch to raw upon apply pinhole mask The signal `raw_masks_changed` was previously causing the raw image mode to be loaded. This wasn't a problem before, because that signal was only emitted while the user was in the raw view. However, the pinhole mask is now always being saved in the raw view, and if the user applies it while in the polar view, the view gets switched automatically to the raw view. Now, the `raw_masks_changed` signal simply causes whatever view is current to update, so that we don't automatically switch to the raw view. Signed-off-by: Patrick Avery --- hexrd/ui/main_window.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hexrd/ui/main_window.py b/hexrd/ui/main_window.py index c4f81ddd9..1cb9f478d 100644 --- a/hexrd/ui/main_window.py +++ b/hexrd/ui/main_window.py @@ -265,8 +265,7 @@ def setup_connections(self): HexrdConfig().detectors_changed.connect( self.on_detectors_changed) HexrdConfig().deep_rerender_needed.connect(self.deep_rerender) - HexrdConfig().raw_masks_changed.connect( - self.ui.image_tab_widget.load_images) + HexrdConfig().raw_masks_changed.connect(self.update_all) HexrdConfig().recent_images_changed.connect( self.update_view_recent_images_list)