midi: fix context menu action "list" when --midi is empty
This commit is contained in:
parent
c91795faf0
commit
349a5a16ef
2 changed files with 7 additions and 2 deletions
|
|
@ -1,5 +1,10 @@
|
|||
# Changelog
|
||||
|
||||
## 0.48.1
|
||||
|
||||
- bug fixes
|
||||
- midi: listing devices from context menu not working when the midi options is empty
|
||||
|
||||
## 0.48.0
|
||||
|
||||
- bug fixes
|
||||
|
|
@ -7,7 +12,7 @@
|
|||
- editor: incorrect position when moving a widget from an edge with the keyboard
|
||||
- modal: prevent touchend event from reaching the inner widgets when opening the container
|
||||
- matrix: clone matrices not properly storing their children's values
|
||||
- multipad/range: errors when dragging over when the gesture was initiated on a traversing widget (ie matrix)
|
||||
- multipad/range: errors when dragging over when the gesture was initiated on a traversing widget (ie matrix)
|
||||
|
||||
- widgets
|
||||
- **new** html widget
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ class MidiConverter {
|
|||
|
||||
static list() {
|
||||
|
||||
var pythonPath = settings.read('midi').filter(x=>x.includes('path=')).map(x=>x.split('=')[1])[0]
|
||||
var pythonPath = settings.read('midi') ? settings.read('midi').filter(x=>x.includes('path=')).map(x=>x.split('=')[1])[0] : undefined
|
||||
|
||||
PythonShell.run('python/list.py', Object.assign({pythonPath}, pythonOptions), function(err, results) {
|
||||
if (err) console.error(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue