mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fixes issue #203
Conditional in comprehension appears to be intended to exclude dunders, but was also excluding many TER weapons from Weapon class args beginning with '_'
This commit is contained in:
parent
cc61893bca
commit
9caf83cda9
@ -11,7 +11,7 @@ class QPylonEditor(QComboBox):
|
||||
self.pylon_number = pylon_number
|
||||
self.flight = flight
|
||||
|
||||
self.possible_loadout = [i for i in self.pylon.__dict__.keys() if i[:1] != '_']
|
||||
self.possible_loadout = [i for i in self.pylon.__dict__.keys() if i[:2] != '__']
|
||||
|
||||
if not str(self.pylon_number) in self.flight.loadout.keys():
|
||||
self.flight.loadout[str(self.pylon_number)] = ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user