mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Include control point name in ground object info.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/498
This commit is contained in:
@@ -178,6 +178,7 @@ class ControlPointJs(QObject):
|
||||
|
||||
class GroundObjectJs(QObject):
|
||||
nameChanged = Signal()
|
||||
controlPointNameChanged = Signal()
|
||||
unitsChanged = Signal()
|
||||
blueChanged = Signal()
|
||||
positionChanged = Signal()
|
||||
@@ -214,6 +215,10 @@ class GroundObjectJs(QObject):
|
||||
def name(self) -> str:
|
||||
return self.tgo.name
|
||||
|
||||
@Property(str, notify=controlPointNameChanged)
|
||||
def controlPointName(self) -> str:
|
||||
return self.tgo.control_point.name
|
||||
|
||||
@Property(str, notify=categoryChanged)
|
||||
def category(self) -> str:
|
||||
return self.tgo.category
|
||||
|
||||
Reference in New Issue
Block a user