mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Better handling of flights with no loadouts ex. Tankers
This commit is contained in:
parent
64d60e5ccf
commit
aae4c905b9
@ -314,7 +314,9 @@ class QFlightCreator(QDialog):
|
||||
def _init_loadout_selector(self):
|
||||
self.loadout_selector.clear()
|
||||
ac_type = self.aircraft_selector.currentData()
|
||||
if ac_type is None:
|
||||
if ac_type is None or not any(list(Loadout.iter_for_aircraft(ac_type))):
|
||||
self.loadout_selector.addItem("No loadouts available", None)
|
||||
self.loadout_selector.setDisabled(True)
|
||||
return
|
||||
for loadout in Loadout.iter_for_aircraft(ac_type):
|
||||
self.loadout_selector.addItem(loadout.name, loadout)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user