1
0
Fork 0

Launcher: hide sidebar tooltips when button updates

Happens with Fly! button when refresh or update occurs.
This commit is contained in:
James Turner 2018-08-08 11:30:38 +02:00
parent c13bfe2722
commit c4e4f83030
2 changed files with 7 additions and 1 deletions

View file

@ -72,7 +72,7 @@ Rectangle {
anchors.bottom: parent.bottom
anchors.bottomMargin: Style.margin
enabled: _launcher.canFly
disabledText: qsTr("The selected aircraft is not installed")
disabledText: qsTr("The selected aircraft is not installed or has updates pending")
icon: "qrc:///svg/toolbox-fly"
onClicked: _launcher.fly();
}

View file

@ -18,6 +18,12 @@ Item {
property string disabledText: ""
onEnabledChanged: {
// if we become enabled, ensure we hide the
// dsiabled prompt (can happen if hovering over 'fly!')
if (enabled) disabledTextBox.hide();
}
Rectangle {
id: baseRect
anchors.fill: parent