Commit da879b45 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

report ALSA port connections in the dialog

parent 37d266bf
......@@ -642,6 +642,14 @@ function midi_prefs_callback(attrs) {
.style.setProperty("display", "none");
document.getElementsByClassName("alsa_midi")[0]
.style.setProperty("display", "inherit");
// For ALSA, we just set the number of ports we want
// for input and output. The tcl/tk interface just reused
// the first of the "indevs" for this value, so (for now)
// we repeat that mistake here...
document.getElementById("alsa_in_ports").value =
+get_attr("pd-indevs", attrs)[0];
document.getElementById("alsa_out_ports").value =
+get_attr("pd-outdevs", attrs)[0];
} else {
document.getElementsByClassName("midi_devices")[0]
.style.setProperty("display", "inherit");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment