Skip to content

Commit

Permalink
Settings: Fix Video Grid Lines
Browse files Browse the repository at this point in the history
  • Loading branch information
HTRamsey committed Sep 20, 2024
1 parent 667fc27 commit 8ad91d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/FlightDisplay/FlightDisplayViewVideo.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 5 additions & 7 deletions src/Settings/Video.SettingsGroup.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8ad91d9

Please sign in to comment.