summaryrefslogtreecommitdiff
path: root/app/qml
diff options
context:
space:
mode:
authorTomasz Sterna <tomek@xiaoka.com>2015-05-11 16:17:09 +0200
committerTomasz Sterna <tomek@xiaoka.com>2015-05-11 16:17:09 +0200
commit6fd4a07a3a317909524560201c576e1e7a3ce6f7 (patch)
tree1e11316047bdb6bbe72d76609010a0b967b1a8af /app/qml
parent3f64297af4e7a070b4f62ebf3f17105ee6b0a3a8 (diff)
Improved local applications handling
- better filter listing local apps in Downloads - option to remove app from local list
Diffstat (limited to 'app/qml')
-rw-r--r--app/qml/pages/InstallAppDialog.qml18
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