Skip to content

Commit

Permalink
Opening MIDI file stops current MIDI file playback
Browse files Browse the repository at this point in the history
  • Loading branch information
Zumorica committed May 29, 2020
1 parent 5b36a0d commit 7222b6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Content.Client/Instruments/InstrumentMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ private async void MidiFileButtonOnOnPressed(BaseButton.ButtonEventArgs obj)
return;
}

MidiStopButtonOnPressed(null);
if (!_owner.Instrument.OpenMidi(filename)) return;
MidiPlaybackSetButtonsDisabled(false);
if (midiInputButton.Pressed)
Expand Down

0 comments on commit 7222b6d

Please sign in to comment.