Skip to content

Commit

Permalink
Emit overlays changed signal after loading state
Browse files Browse the repository at this point in the history
Signed-off-by: Brianna Major <[email protected]>
  • Loading branch information
bnmajor committed Aug 3, 2023
1 parent 593765b commit 3f28a50
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion hexrd/ui/hexrd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions hexrd/ui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3f28a50

Please sign in to comment.