launcher: fix file browsing (dialog.showOpenDialog now returns a promise)

This commit is contained in:
bordun 2020-02-23 15:10:12 +01:00
parent e57cd32438
commit e180b889cb
2 changed files with 8 additions and 3 deletions

View file

@ -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()
})
})