mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-17 18:37:20 -05:00
Set correct authority to handle image choosed
This commit is contained in:
parent
2d9f062c27
commit
7698e74387
@ -29,7 +29,7 @@ Item
|
|||||||
if (Qt.platform.os === "android")
|
if (Qt.platform.os === "android")
|
||||||
{
|
{
|
||||||
console.log("ImagePicker Android platform detected")
|
console.log("ImagePicker Android platform detected")
|
||||||
mainWindow.addUriHandler("media", androidResult)
|
mainWindow.addUriHandler("file", androidResult)
|
||||||
androidImagePicker.openPicker()
|
androidImagePicker.openPicker()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -40,7 +40,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