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.bottom: parent.bottom
|
||||||
anchors.bottomMargin: Style.margin
|
anchors.bottomMargin: Style.margin
|
||||||
enabled: _launcher.canFly
|
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"
|
icon: "qrc:///svg/toolbox-fly"
|
||||||
onClicked: _launcher.fly();
|
onClicked: _launcher.fly();
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,6 +18,12 @@ Item {
|
||||||
|
|
||||||
property string disabledText: ""
|
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 {
|
Rectangle {
|
||||||
id: baseRect
|
id: baseRect
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|
Loading…
Add table
Reference in a new issue