From 8ad91d9ee813523309c97f48fb5828391f2328aa Mon Sep 17 00:00:00 2001 From: Holden Date: Wed, 18 Sep 2024 16:48:48 -0400 Subject: [PATCH] Settings: Fix Video Grid Lines --- src/FlightDisplay/FlightDisplayViewVideo.qml | 2 +- src/Settings/Video.SettingsGroup.json | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/FlightDisplay/FlightDisplayViewVideo.qml b/src/FlightDisplay/FlightDisplayViewVideo.qml index e9fb676104a..d1c84c1e375 100644 --- a/src/FlightDisplay/FlightDisplayViewVideo.qml +++ b/src/FlightDisplay/FlightDisplayViewVideo.qml @@ -27,7 +27,7 @@ Item { property bool useSmallFont: true property double _ar: QGroundControl.videoManager.aspectRatio - property bool _showGrid: QGroundControl.settingsManager.videoSettings.gridLines.rawValue > 0 + property bool _showGrid: QGroundControl.settingsManager.videoSettings.gridLines.rawValue property var _dynamicCameras: globals.activeVehicle ? globals.activeVehicle.cameraManager : null property bool _connected: globals.activeVehicle ? !globals.activeVehicle.communicationLost : false property int _curCameraIndex: _dynamicCameras ? _dynamicCameras.currentCamera : 0 diff --git a/src/Settings/Video.SettingsGroup.json b/src/Settings/Video.SettingsGroup.json index 805d60c627d..f1a4b994ce3 100644 --- a/src/Settings/Video.SettingsGroup.json +++ b/src/Settings/Video.SettingsGroup.json @@ -48,13 +48,11 @@ "default": 1.777777 }, { - "name": "gridLines", - "shortDesc": "Video Grid Lines", - "longDesc": "Displays a grid overlaid over the video view.", - "type": "uint32", - "enumStrings": "Hide,Show", - "enumValues": "1,0", - "default": 0 + "name": "gridLines", + "shortDesc": "Video Grid Lines", + "longDesc": "Displays a grid overlaid over the video view.", + "type": "bool", + "default": false }, { "name": "videoFit",