13
0

Prefix an asterisk to indicate plugin replication

This saves space compared to "(NxN) ", especially with narrow
mixer-strips
This commit is contained in:
Robin Gareus 2019-03-01 17:48:46 +01:00
parent 6daba61ab2
commit 6be7fa2d45
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -619,11 +619,15 @@ ProcessorEntry::name (Width w) const
} else {
boost::shared_ptr<ARDOUR::PluginInsert> pi;
uint32_t replicated;
if ((pi = boost::dynamic_pointer_cast<ARDOUR::PluginInsert> (_processor)) != 0
&& (replicated = pi->get_count()) > 1)
{
name_display += string_compose(_("(%1x1) "), replicated);
if ((pi = boost::dynamic_pointer_cast<ARDOUR::PluginInsert> (_processor)) != 0 && pi->get_count() > 1) {
switch (w) {
case Wide:
name_display += "* ";
break;
case Narrow:
name_display += "*";
break;
}
}
switch (w) {
@ -634,7 +638,6 @@ ProcessorEntry::name (Width w) const
name_display += PBD::short_version (_processor->display_name(), 5);
break;
}
}
return name_display;