13
0

Moved the code to ignore latency ports to the appropriate place

(*before* the packer code).


git-svn-id: svn://localhost/trunk/ardour2@283 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Sampo Savolainen 2006-01-20 23:27:47 +00:00
parent ad2ee02728
commit a54169c198

View File

@ -235,9 +235,15 @@ PluginUI::build (AudioEngine &engine)
for (i = 0; i < plugin.parameter_count(); ++i) {
if (plugin.parameter_is_control (i)) {
/* Don't show latency control ports */
if (plugin.describe_parameter (i) == X_("latency")) {
continue;
}
ControlUI* cui;
/* if we are scrollable, just use one long column */
if (!is_scrollable) {
@ -256,12 +262,6 @@ PluginUI::build (AudioEngine &engine)
}
}
/* Don't show latency control ports */
if (plugin.describe_parameter (i) == X_("latency")) {
continue;
}
if ((cui = build_control_ui (engine, i, plugin.get_nth_midi_control (i))) == 0) {
error << string_compose(_("Plugin Editor: could not build control element for port %1"), i) << endmsg;
continue;