Add predefined squadron support.

https://github.com/dcs-liberation/dcs_liberation/issues/276
This commit is contained in:
Dan Albert
2021-05-26 23:35:05 -07:00
parent 9091afe682
commit ac4a7441e9
6 changed files with 100 additions and 15 deletions

View File

@@ -397,7 +397,7 @@ class AirWingModel(QAbstractListModel):
@staticmethod
def text_for_squadron(squadron: Squadron) -> str:
"""Returns the text that should be displayed for the squadron."""
return squadron.name
return str(squadron)
@staticmethod
def icon_for_squadron(squadron: Squadron) -> Optional[QIcon]: