def METHOD_NAME(self, use_custom: bool) -> None:
    self.loadout_selector.setDisabled(use_custom)
    if use_custom:
        self.flight.loadout = self.flight.loadout.derive_custom("Custom")
    else:
        self.flight.loadout = self.current_loadout()
        self.payload_editor.reset_pylons()