13
0

VKeybd: use a non-translatable port-name (2/2)

This commit is contained in:
Robin Gareus 2021-01-08 16:31:21 +01:00
parent af29e7483b
commit 559ffcff63
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -513,8 +513,8 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp
if (!inputs && (type == DataType::MIDI || type == DataType::NIL)) {
boost::shared_ptr<ARDOUR::Port> ap = boost::dynamic_pointer_cast<ARDOUR::Port> (session->vkbd_output_port());
AudioEngine* ae = AudioEngine::instance();
boost::shared_ptr<Bundle> vm (new Bundle (_("Virtual MIDI"), inputs));
vm->add_channel (_("Virtual Keyboard"), DataType::MIDI, ae->make_port_name_non_relative (ap->name()));
boost::shared_ptr<Bundle> vm (new Bundle (ap->pretty_name (), inputs));
vm->add_channel (ap->pretty_name (), DataType::MIDI, ae->make_port_name_non_relative (ap->name()));
program->add_bundle (vm);
}