mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix crash when opening FOB menus.
This commit is contained in:
parent
21c35b31d4
commit
64d7953e50
@ -12,6 +12,7 @@ from PySide2.QtWidgets import (
|
|||||||
|
|
||||||
from game import Game, db
|
from game import Game, db
|
||||||
from game.theater import ControlPoint, ControlPointType, SupplyRoute
|
from game.theater import ControlPoint, ControlPointType, SupplyRoute
|
||||||
|
from game.theater.supplyroutes import RoadNetwork, ShippingNetwork
|
||||||
from gen.flights.flight import FlightType
|
from gen.flights.flight import FlightType
|
||||||
from qt_ui.dialogs import Dialog
|
from qt_ui.dialogs import Dialog
|
||||||
from qt_ui.models import GameModel
|
from qt_ui.models import GameModel
|
||||||
@ -107,7 +108,8 @@ class QBaseMenu2(QDialog):
|
|||||||
def has_transfer_destinations(self) -> bool:
|
def has_transfer_destinations(self) -> bool:
|
||||||
return (
|
return (
|
||||||
self.cp.runway_is_operational()
|
self.cp.runway_is_operational()
|
||||||
or len(SupplyRoute.for_control_point(self.cp)) > 1
|
or len(RoadNetwork.for_control_point(self.cp)) > 1
|
||||||
|
or len(ShippingNetwork.for_control_point(self.cp)) > 1
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user