Launcher: hide sidebar tooltips when button updates
Happens with Fly! button when refresh or update occurs.
This commit is contained in:
parent
c13bfe2722
commit
c4e4f83030
2 changed files with 7 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue