diff options
-rw-r--r-- | desktop/sources/scripts/core/io/midi.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/sources/scripts/core/io/midi.js b/desktop/sources/scripts/core/io/midi.js index a0574dd..0cdb100 100644 --- a/desktop/sources/scripts/core/io/midi.js +++ b/desktop/sources/scripts/core/io/midi.js @@ -176,8 +176,8 @@ function Midi (client) { } this.selectNextInput = () => { - this.inputIndex = this.inputIndex < this.inputs.length ? this.inputIndex + 1 : 0 - this.selectInput(this.inputIndex) + const id = this.inputIndex < this.inputs.length-1 ? this.inputIndex + 1 : -1 + this.selectInput(id) client.update() } |