From 6ab9cd52ae77481c582b22dc97ad716b7a8ab87f Mon Sep 17 00:00:00 2001 From: Rustom Jehangir Date: Tue, 2 Aug 2016 12:00:45 -0700 Subject: [PATCH] Hide radio rssi icon from toolbar if radio is not supported --- src/Vehicle/Vehicle.h | 1 + src/ui/toolbar/MainToolBarIndicators.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Vehicle/Vehicle.h b/src/Vehicle/Vehicle.h index e70c2981b..3e039794d 100644 --- a/src/Vehicle/Vehicle.h +++ b/src/Vehicle/Vehicle.h @@ -278,6 +278,7 @@ public: Q_PROPERTY(bool supportsManualControl READ supportsManualControl CONSTANT) Q_PROPERTY(bool supportsThrottleModeCenterZero READ supportsThrottleModeCenterZero CONSTANT) Q_PROPERTY(bool supportsJSButton READ supportsJSButton CONSTANT) + Q_PROPERTY(bool supportsRadio READ supportsRadio CONSTANT) Q_PROPERTY(bool sub READ sub CONSTANT) Q_PROPERTY(bool autoDisconnect MEMBER _autoDisconnect NOTIFY autoDisconnectChanged) Q_PROPERTY(QString prearmError READ prearmError WRITE setPrearmError NOTIFY prearmErrorChanged) diff --git a/src/ui/toolbar/MainToolBarIndicators.qml b/src/ui/toolbar/MainToolBarIndicators.qml index fff05d787..bf2f0143b 100644 --- a/src/ui/toolbar/MainToolBarIndicators.qml +++ b/src/ui/toolbar/MainToolBarIndicators.qml @@ -168,6 +168,7 @@ Row { id: rcRssi width: rssiRow.width * 1.1 height: mainWindow.tbCellHeight + visible: activeVehicle ? activeVehicle.supportsRadio : true Row { id: rssiRow height: parent.height -- 2.22.0