code: def restore_state(self):
          
          if self.state is None:
              return
          for myCount in range(0, self.exposure_layer_combo.count()):
              item_text = self.exposure_layer_combo.itemText(myCount)
              if item_text == self.state['exposure']:
                  self.exposure_layer_combo.setCurrentIndex(myCount)
                  break
          for myCount in range(0, self.hazard_layer_combo.count()):
              item_text = self.hazard_layer_combo.itemText(myCount)
              if item_text == self.state['hazard']:
                  self.hazard_layer_combo.setCurrentIndex(myCount)
                  break
          for myCount in range(0, self.aggregation_layer_combo.count()):
              item_text = self.aggregation_layer_combo.itemText(myCount)
              if item_text == self.state['aggregation']:
                  self.aggregation_layer_combo.setCurrentIndex(myCount)
                  break
          self.results_webview.setHtml(self.state['report'])
docs: Restore the state of the dock to the last known state.