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 ddbd526eae
commit cee513ee7d
2 changed files with 8 additions and 3 deletions

View file

@ -1,8 +1,13 @@
# Changelog
## 0.49.5
- bug fixes
- launcher: file/folder browsing not working
## 0.49.4
- bug fixes:
- bug fixes
- image: fixed absolute paths
- image: reset to 'default' instead of 'value' when receiving an empty value
- launcher: use current midi config for "List devices" action

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