13
0

List matching I/O Plugin ports in connection button dropdown

This commit is contained in:
Robin Gareus 2022-10-16 21:44:52 +02:00
parent 8d879616a6
commit c8671b5747
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -248,6 +248,13 @@ IOButton::button_press (GdkEventButton* ev)
}
maybe_add_bundle_to_menu ((*i)->output ()->bundle (), current);
}
for (auto const& iop : *_route->session ().io_plugs ()) {
if (!iop->is_pre ()) {
continue;
}
maybe_add_bundle_to_menu (iop->output ()->bundle (), current);
}
} else {
DataType intended_type = guess_main_type (_input ? _route->input () : _route->output ());
@ -276,6 +283,13 @@ IOButton::button_press (GdkEventButton* ev)
maybe_add_bundle_to_menu (*i, current, intended_type);
}
}
for (auto const& iop : *_route->session ().io_plugs ()) {
if (iop->is_pre ()) {
continue;
}
maybe_add_bundle_to_menu (iop->input ()->bundle (), current, intended_type);
}
}
if (citems.size () > n_with_separator) {