Fix bug w.r.t. enable/disable JTAC for OWNFOR

This commit is contained in:
Raffson 2024-12-08 17:32:25 +01:00
parent 6d9478e0d4
commit 94a14f40cb
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -35,6 +35,7 @@ class QFactionUnits(QScrollArea):
self.parent = parent
self.faction = faction
self._create_checkboxes(show_jtac)
self.show_jtac = show_jtac
def _add_checkboxes(
self,
@ -214,7 +215,7 @@ class QFactionUnits(QScrollArea):
self.faction = faction
self.content = QWidget()
self.setWidget(self.content)
self._create_checkboxes()
self._create_checkboxes(self.show_jtac)
self.update()
if self.parent:
self.parent.update()