launcher: fix file browsing (dialog.showOpenDialog now returns a promise)
This commit is contained in:
parent
e57cd32438
commit
e180b889cb
2 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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