Show plugin-type in processor-window title

This commit is contained in:
Robin Gareus 2020-09-15 15:52:16 +02:00
parent 07df51fbc7
commit ec1d9022b2
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -4313,12 +4313,13 @@ ProcessorBox::generate_processor_title (boost::shared_ptr<PluginInsert> pi)
maker += " ...";
}
SessionObject* owner = pi->owner();
SessionObject* owner = pi->owner ();
std::string type = PluginManager::plugin_type_name (pi->type ());
if (owner) {
return string_compose(_("%1: %2 (by %3)"), owner->name(), pi->name(), maker);
return string_compose(_("%1: %2 (by %3) [%4]"), owner->name(), pi->name(), maker, type);
} else {
return string_compose(_("%1 (by %2)"), pi->name(), maker);
return string_compose(_("%1 (by %2) [%3]"), pi->name(), maker, type);
}
}