Commit 973faaf2 authored by Don Gagne's avatar Don Gagne

Make disconnect for prominent

parent 3b00e145
...@@ -569,18 +569,21 @@ Rectangle { ...@@ -569,18 +569,21 @@ Rectangle {
font.pixelSize: tbFontLarge font.pixelSize: tbFontLarge
font.weight: Font.DemiBold font.weight: Font.DemiBold
color: colorRed color: colorRed
anchors.left: parent.left anchors.rightMargin: ScreenTools.defaultFontPixelWidth
anchors.right: disconnectButton.left
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
visible: parent.vehicleConnectionLost visible: parent.vehicleConnectionLost
} }
QGCButton { QGCButton {
id: disconnectButton
anchors.rightMargin: mainWindow.tbSpacing * 2 anchors.rightMargin: mainWindow.tbSpacing * 2
anchors.right: parent.right anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
text: "Disconnect" text: "Disconnect"
visible: parent.vehicleConnectionLost visible: parent.vehicleConnectionLost
primary: true
onClicked: activeVehicle.disconnectInactiveVehicle() onClicked: activeVehicle.disconnectInactiveVehicle()
} }
} }
......
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