code: def toggle_aggregation_layer_combo(self):
          
          selected_hazard_layer = layer_from_combo(self.hazard_layer_combo)
          selected_exposure_layer = layer_from_combo(self.exposure_layer_combo)
  
          # more than 1 because No aggregation is always there
          if ((self.aggregation_layer_combo.count() > 1)
                  and (selected_hazard_layer is not None)
                  and (selected_exposure_layer is not None)):
              self.aggregation_layer_combo.setEnabled(True)
          else:
              self.aggregation_layer_combo.setCurrentIndex(0)
              self.aggregation_layer_combo.setEnabled(False)
docs: Toggle the aggregation combo enabled status.
  
          Whether the combo is toggled on or off will depend on the current dock
          status.