From 3f28a50eb7d4704e9cc49e9477efd3506db898b3 Mon Sep 17 00:00:00 2001 From: Brianna Major Date: Thu, 3 Aug 2023 08:52:08 -0400 Subject: [PATCH] Emit overlays changed signal after loading state Signed-off-by: Brianna Major --- hexrd/ui/hexrd_config.py | 1 - hexrd/ui/main_window.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/hexrd/ui/hexrd_config.py b/hexrd/ui/hexrd_config.py index 33ea80a23..381797aee 100644 --- a/hexrd/ui/hexrd_config.py +++ b/hexrd/ui/hexrd_config.py @@ -964,7 +964,6 @@ def read_file(f): self.config['materials']['show_overlays'] = False self.update_visible_material_energies() self.config['materials']['show_overlays'] = prev - self.overlay_config_changed.emit() if not import_raw: self.instrument_config_loaded.emit() diff --git a/hexrd/ui/main_window.py b/hexrd/ui/main_window.py index edc39caa6..ae363293b 100644 --- a/hexrd/ui/main_window.py +++ b/hexrd/ui/main_window.py @@ -333,6 +333,7 @@ def setup_connections(self): def on_state_loaded(self): self.update_action_check_states() + HexrdConfig().overlay_config_changed.emit() def update_action_check_states(self): checkbox_to_hexrd_config_mappings = {