shithub: orca

Download patch

ref: dfe4c6fb70a1bf75a519a58afdf4461acbf1b810
parent: a1f235dee5bfd5ff13f0d5fa26809827bc6a4ba2
author: cancel <cancel@cancel.fm>
date: Sun Jan 12 10:22:49 EST 2020

Change to only use prefs midi mode if no cmdline spec

--- a/tui_main.c
+++ b/tui_main.c
@@ -2853,7 +2853,8 @@
   Prefs_load_error prefserr = prefs_load_from_conf_file(&prefs);
   if (prefserr == Prefs_load_ok) {
 #ifdef FEAT_PORTMIDI
-    if (osolen(prefs.portmidi_output_device)) {
+    if (midi_mode.any.type == Midi_mode_type_null &&
+        osolen(prefs.portmidi_output_device)) {
       // PortMidi can be hilariously slow to initialize. Since it will be
       // initialized automatically if the user has a prefs entry for PortMidi
       // devices, we should show a message to the user letting them know why