Loadout selector bugfix (#430)

fix loadout selector being disabled if awacs or refueling is selected and then changed to something else
This commit is contained in:
Druss99 2024-12-17 08:23:30 -05:00 committed by GitHub
parent 06d3805946
commit 9d6f1552c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -318,6 +318,8 @@ class QFlightCreator(QDialog):
self.loadout_selector.addItem("No loadouts available", None)
self.loadout_selector.setDisabled(True)
return
else:
self.loadout_selector.setDisabled(False)
for loadout in Loadout.iter_for_aircraft(ac_type):
self.loadout_selector.addItem(loadout.name, loadout)
for loadout in Loadout.default_loadout_names_for(