mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-26 14:32:01 +00:00
fix(desktop/profile): Ensure that the file is selected in FileDialog
Fix #5238
This commit is contained in:
parent
a16592c61f
commit
f067d59612
@ -81,8 +81,10 @@ StatusModal {
|
||||
qsTrId("image-files----jpg---jpeg---png-")
|
||||
]
|
||||
onAccepted: {
|
||||
cropImageModal.selectedImage = imageDialog.fileUrls[0];
|
||||
cropImageModal.open()
|
||||
if(imageDialog.fileUrls.length > 0) {
|
||||
cropImageModal.selectedImage = imageDialog.fileUrls[0];
|
||||
cropImageModal.open()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user