Browse Source

Added a signal handler to force toggle the switch. Not sure why the normal signal is not being respected.

QGC4.4
Gus Grubba 8 years ago
parent
commit
57f0cf4a2d
  1. 8
      src/FlightMap/Widgets/VideoPageWidget.qml

8
src/FlightMap/Widgets/VideoPageWidget.qml

@ -45,12 +45,20 @@ Item { @@ -45,12 +45,20 @@ Item {
columnSpacing: ScreenTools.defaultFontPixelWidth * 2
rowSpacing: ScreenTools.defaultFontPixelHeight
anchors.centerIn: parent
Connections {
// For some reason, the normal signal is not reflected in the control below
target: QGroundControl.settingsManager.videoSettings.streamEnabled
onRawValueChanged: {
enableSwitch.checked = QGroundControl.settingsManager.videoSettings.streamEnabled.rawValue
}
}
// Enable/Disable Video Streaming
QGCLabel {
text: qsTr("Enable Stream")
font.pointSize: ScreenTools.smallFontPointSize
}
QGCSwitch {
id: enableSwitch
enabled: _streamingEnabled
checked: QGroundControl.settingsManager.videoSettings.streamEnabled.rawValue
onClicked: {

Loading…
Cancel
Save