launcher: fix file browsing (dialog.showOpenDialog now returns a promise)
This commit is contained in:
parent
ddbd526eae
commit
cee513ee7d
2 changed files with 8 additions and 3 deletions
|
|
@ -74,8 +74,8 @@ $(document).ready(()=>{
|
|||
dialog.showOpenDialog({
|
||||
filters:[{name:option.file.name,extensions:option.file.extensions}],
|
||||
properties: option.file.folder ? ['openDirectory'] : ['openFile']
|
||||
},function(file){
|
||||
input.val(file).change()
|
||||
}).then((file)=>{
|
||||
input.val(file.filePaths).change()
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue