diff options
Diffstat (limited to 'app/qml/pages')
| -rw-r--r-- | app/qml/pages/InstallAppDialog.qml | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/app/qml/pages/InstallAppDialog.qml b/app/qml/pages/InstallAppDialog.qml index 97513c0..cba3e4e 100644 --- a/app/qml/pages/InstallAppDialog.qml +++ b/app/qml/pages/InstallAppDialog.qml @@ -11,6 +11,7 @@ Dialog { Component { id: appPicker + // Copied+modified from /usr/lib/qt5/qml/Sailfish/Pickers/MultiDocumentPickerDialog.qml PickerDialog { id: appPickerDialog @@ -27,9 +28,9 @@ Dialog { DocumentModel { id: documentModel selectedModel: _selectedModel - contentFilter: GalleryStartsWithFilter { - property: "filePath" - value: StandardPaths.documents + "/../Downloads" + contentFilter: GalleryFilterIntersection { + GalleryStartsWithFilter { property: "filePath"; value: StandardPaths.documents + "/../Downloads" } + GalleryEndsWithFilter { property: "fileName"; value: ".pbw" } } } @@ -136,6 +137,17 @@ Dialog { accept(); } } + + menu: ContextMenu { + MenuItem { + text: qsTr("Delete App file") + onClicked: { + remorseAction(qsTr("Deleting " + modelData.shortName), function() { + pebbled.unregisterAppFile(modelData.path) + }); + } + } + } } model: pebbled.allApps |
