Fix unit info menus for aircraft.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1586
This commit is contained in:
Dan Albert
2021-09-01 19:18:19 -07:00
parent 9c3171f1ce
commit 16d397db1c
2 changed files with 17 additions and 3 deletions

View File

@@ -273,6 +273,8 @@ class UnitTransactionFrame(QFrame, Generic[TransactionItemType]):
else:
return "Unit can not be sold."
def info(self, unit_type: UnitType) -> None:
self.info_window = QUnitInfoWindow(self.game_model.game, unit_type)
def info(self, item: TransactionItemType) -> None:
self.info_window = QUnitInfoWindow(
self.game_model.game, self.purchase_adapter.unit_type_of(item)
)
self.info_window.show()