diff --git a/hexrdgui/main_window.py b/hexrdgui/main_window.py index ce69ed6be..5b8117030 100644 --- a/hexrdgui/main_window.py +++ b/hexrdgui/main_window.py @@ -1480,6 +1480,9 @@ def load_state_file(self, filepath): HexrdConfig().add_recent_state_file(filepath) self.update_recent_state_files() + # Show the loaded state in the window title + self.ui.setWindowTitle(f'HEXRD - {path.name}') + # Since statuses are added after the instrument config is loaded, # the statuses in the GUI might not be up to date. Ensure it is. self.update_config_gui()