Kirigami: Don't show two drawer items

One just on Android, the other for the rest
remotes/origin/gsoc2018_typewriter
Aleix Pol 8 years ago
parent 885e1f2269
commit add2c59808
  1. 4
      mobile/app/package/contents/ui/main.qml

@ -45,13 +45,15 @@ Kirigami.AbstractApplicationWindow {
Kirigami.Action {
text: i18n("Open...")
icon.name: "document-open"
visible: Qt.platform.os !== "android"
onTriggered: {
fileDialog.open()
}
},
Kirigami.Action {
text: i18n("Open Android...")
text: i18n("Open...")
icon.name: "document-open"
visible: p0.enabled
readonly property var p0: Connections {
target: AndroidInstance
enabled: AndroidInstance.hasOwnProperty("openFile")

Loading…
Cancel
Save