Commit 3f9493a0 authored by Jacob Dahl's avatar Jacob Dahl

updated to use forwardMavlinkHostName visible property for visible setting of qml items

parent 7b5733de
...@@ -166,14 +166,14 @@ Rectangle { ...@@ -166,14 +166,14 @@ Rectangle {
QGCLabel { QGCLabel {
width: _labelWidth width: _labelWidth
anchors.baseline: mavlinkForwardingHostNameField.baseline anchors.baseline: mavlinkForwardingHostNameField.baseline
visible: QGroundControl.settingsManager.appSettings.forwardMavlink.visible visible: QGroundControl.settingsManager.appSettings.forwardMavlinkHostName.visible
text: qsTr("Host name:") text: qsTr("Host name:")
} }
FactTextField { FactTextField {
id: mavlinkForwardingHostNameField id: mavlinkForwardingHostNameField
fact: QGroundControl.settingsManager.appSettings.forwardMavlinkHostName fact: QGroundControl.settingsManager.appSettings.forwardMavlinkHostName
width: _valueWidth width: _valueWidth
visible: QGroundControl.settingsManager.appSettings.forwardMavlink.visible visible: QGroundControl.settingsManager.appSettings.forwardMavlinkHostName.visible
enabled: QGroundControl.settingsManager.appSettings.forwardMavlink.rawValue enabled: QGroundControl.settingsManager.appSettings.forwardMavlink.rawValue
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
...@@ -181,7 +181,7 @@ Rectangle { ...@@ -181,7 +181,7 @@ Rectangle {
} }
QGCLabel { QGCLabel {
text: qsTr("<i> Changing the host name requires restart of application. </i>") text: qsTr("<i> Changing the host name requires restart of application. </i>")
visible: QGroundControl.settingsManager.appSettings.forwardMavlink.visible visible: QGroundControl.settingsManager.appSettings.forwardMavlinkHostName.visible
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment