mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix incorrect handling of disabled groups in buy menu
Disabled groups would still be bought free of charge. this is now fixed
This commit is contained in:
parent
321bd4e874
commit
015103f613
@ -222,14 +222,15 @@ class QGroundObjectTemplateLayout(QGroupBox):
|
||||
self.ground_object.groups = []
|
||||
for group_name, groups in self.layout_model.groups.items():
|
||||
for group in groups:
|
||||
self.layout_model.force_group.create_theater_group_for_tgo(
|
||||
self.ground_object,
|
||||
group.layout,
|
||||
f"{self.ground_object.name} ({group_name})",
|
||||
self.game,
|
||||
group.dcs_unit_type, # Forced Type
|
||||
group.amount, # Forced Amount
|
||||
)
|
||||
if group.enabled:
|
||||
self.layout_model.force_group.create_theater_group_for_tgo(
|
||||
self.ground_object,
|
||||
group.layout,
|
||||
f"{self.ground_object.name} ({group_name})",
|
||||
self.game,
|
||||
group.dcs_unit_type, # Forced Type
|
||||
group.amount, # Forced Amount
|
||||
)
|
||||
self.close_dialog_signal.emit()
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user