Browse Source

Merge pull request #3078 from DonLakeFlyer/Disconnect

Make disconnect for prominent
QGC4.4
Don Gagne 9 years ago
parent
commit
e0efcb207f
  1. 5
      src/ui/toolbar/MainToolBar.qml

5
src/ui/toolbar/MainToolBar.qml

@ -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()
} }
} }

Loading…
Cancel
Save