Make document picker work again, fix image picker
This commit is contained in:
parent
fb5cf0d382
commit
30decc8f84
1 changed files with 2 additions and 2 deletions
|
@ -1002,7 +1002,7 @@ Page {
|
|||
attachmentOptionsRow.visible = false;
|
||||
console.log("Selected document: " + picker.selectedContentProperties.filePath );
|
||||
attachmentPreviewRow.fileProperties = picker.selectedContentProperties;
|
||||
attachmentPreviewRow.isDocument = true;
|
||||
attachmentPreviewRow.isPicture = true;
|
||||
attachmentPreviewRow.visible = true;
|
||||
controlSendButton();
|
||||
})
|
||||
|
@ -1027,7 +1027,7 @@ Page {
|
|||
id: documentAttachmentButton
|
||||
icon.source: "image://theme/icon-m-document"
|
||||
onClicked: {
|
||||
var picker = pageStack.push("Sailfish.Pickers.DocumentPicker");
|
||||
var picker = pageStack.push("Sailfish.Pickers.DocumentPickerPage");
|
||||
picker.selectedContentPropertiesChanged.connect(function(){
|
||||
attachmentOptionsRow.visible = false;
|
||||
console.log("Selected document: " + picker.selectedContentProperties.filePath );
|
||||
|
|
Loading…
Reference in a new issue