Streamlining

This commit is contained in:
Raffson
2023-10-07 21:37:49 +02:00
parent 59673e7911
commit ea726bbf06
11 changed files with 21 additions and 38 deletions

View File

@@ -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)