code: def restore_state(self):
          
          # restore last source path
          last_source_path = setting(
              'lastSourceDir', self.default_directory, expected_type=str)
          self.source_directory.setText(last_source_path)
  
          # restore path pdf output
          last_output_dir = setting(
              'lastOutputDir', self.default_directory, expected_type=str)
          self.output_directory.setText(last_output_dir)
  
          # restore default output dir combo box
          use_default_output_dir = bool(setting(
              'useDefaultOutputDir', True, expected_type=bool))
          self.scenario_directory_radio.setChecked(
              use_default_output_dir)
docs: Restore GUI state from configuration file.