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
|
folder: shortcuts.pictures
|
||||||
nameFilters: [ "Image files (*.png *.jpg)"]
|
nameFilters: [ "Image files (*.png *.jpg)"]
|
||||||
visible: false
|
visible: false
|
||||||
|
selectMultiple: false
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
console.log("You chose: " + fileDialog.fileUrls)
|
console.log("You chose: " + fileDialog.fileUrl)
|
||||||
resultFile = fileDialog.fileUrls
|
resultFile = fileDialog.fileUrl
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
console.log("Canceled")
|
console.log("Canceled")
|
||||||
@ -40,7 +41,7 @@ Item
|
|||||||
|
|
||||||
function androidResult (uri)
|
function androidResult (uri)
|
||||||
{
|
{
|
||||||
console.log("@@@@@@@@@ Android image uri found" , uri)
|
console.log("Android image uri found" , uri)
|
||||||
resultFile = uri
|
resultFile = uri
|
||||||
mainWindow.delUriHandler("media", androidResult)
|
mainWindow.delUriHandler("media", androidResult)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user