mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Streamlining
This commit is contained in:
@@ -94,7 +94,7 @@ class QFactionUnits(QScrollArea):
|
||||
def updateFactionUnits(self, units: Union[set, list]):
|
||||
deletes = []
|
||||
for a in units:
|
||||
if not self.checkboxes[a.name].isChecked():
|
||||
if not self.checkboxes[str(a)].isChecked():
|
||||
deletes.append(a)
|
||||
for d in deletes:
|
||||
units.remove(d)
|
||||
|
||||
Reference in New Issue
Block a user