Don't show ground unit menu at carriers.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1220
This commit is contained in:
Dan Albert
2021-06-18 19:38:31 -07:00
parent 0a874a28ef
commit 95d3ff4cbe
3 changed files with 2 additions and 1 deletions

View File

@@ -29,6 +29,6 @@ class QBaseMenuTabs(QTabWidget):
else:
self.airfield_command = QAirfieldCommand(cp, game_model)
self.addTab(self.airfield_command, "Airfield Command")
if not isinstance(cp, OffMapSpawn):
if cp.can_deploy_ground_units:
self.ground_forces_hq = QGroundForcesHQ(cp, game_model)
self.addTab(self.ground_forces_hq, "Ground Forces HQ")