mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Set filechooser to return a single url
This commit is contained in:
parent
e268fe0145
commit
9a621b7509
@ -14,9 +14,10 @@ Item
|
||||
folder: shortcuts.pictures
|
||||
nameFilters: [ "Image files (*.png *.jpg)"]
|
||||
visible: false
|
||||
selectMultiple: false
|
||||
onAccepted: {
|
||||
console.log("You chose: " + fileDialog.fileUrls)
|
||||
resultFile = fileDialog.fileUrls
|
||||
console.log("You chose: " + fileDialog.fileUrl)
|
||||
resultFile = fileDialog.fileUrl
|
||||
}
|
||||
onRejected: {
|
||||
console.log("Canceled")
|
||||
@ -40,7 +41,7 @@ Item
|
||||
|
||||
function androidResult (uri)
|
||||
{
|
||||
console.log("@@@@@@@@@ Android image uri found" , uri)
|
||||
console.log("Android image uri found" , uri)
|
||||
resultFile = uri
|
||||
mainWindow.delUriHandler("media", androidResult)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user