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 {
QGCLabel {
width: _labelWidth
anchors.baseline: mavlinkForwardingHostNameField.baseline
visible: QGroundControl.settingsManager.appSettings.forwardMavlink.visible
visible: QGroundControl.settingsManager.appSettings.forwardMavlinkHostName.visible
text: qsTr("Host name:")
}
FactTextField {
id: mavlinkForwardingHostNameField
fact: QGroundControl.settingsManager.appSettings.forwardMavlinkHostName
width: _valueWidth
visible: QGroundControl.settingsManager.appSettings.forwardMavlink.visible
visible: QGroundControl.settingsManager.appSettings.forwardMavlinkHostName.visible
enabled: QGroundControl.settingsManager.appSettings.forwardMavlink.rawValue
anchors.verticalCenter: parent.verticalCenter
}
......@@ -181,7 +181,7 @@ Rectangle {
}
QGCLabel {
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