mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Fix: File Path Chooser only opens once (#48)
This commit is contained in:
parent
3280fe389a
commit
85787c3e14
1 changed files with 7 additions and 4 deletions
|
@ -207,13 +207,16 @@ Item {
|
|||
selectByMouse: true
|
||||
|
||||
text: moneroAccountsDir + "/"
|
||||
onFocusChanged: {
|
||||
if(focus) {
|
||||
fileDialog.folder = text
|
||||
// workaround for the bug "filechooser only opens once"
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
mouse.accepted = false
|
||||
fileDialog.folder = walletManager.localPathToUrl(fileUrlInput.text)
|
||||
fileDialog.open()
|
||||
fileUrlInput.focus = true
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
|
|
Loading…
Reference in a new issue