1
0
Fork 0

Launcher: fix Fly! menu enablement

This commit is contained in:
James Turner 2021-08-02 15:45:23 +01:00
parent e58a06465c
commit dab9e6ba5f

View file

@ -197,8 +197,13 @@ Item {
z: 100
items: [
MenuItem { text:qsTr("Fly!"); shortcut: "Ctrl+F";
onTriggered: _launcher.fly(); },
MenuItem {
text:qsTr("Fly!")
shortcut: "Ctrl+F"
enabled: _launcher.canFly
onTriggered: _launcher.fly()
},
MenuItem { text:qsTr("Open saved configuration..."); shortcut: "Ctrl+O";
onTriggered: _launcher.openConfig(); },
MenuItem { text:qsTr("Save configuration as..."); shortcut: "Ctrl+S";