mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Don't show DSP stats of inserts that don't collect them.
This commit is contained in:
parent
d1cf21634f
commit
78f749ef65
2 changed files with 4 additions and 2 deletions
|
|
@ -157,7 +157,9 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol
|
|||
pack_end (plugin_analysis_expander, false, false);
|
||||
}
|
||||
|
||||
if (insert->provides_stats ()) {
|
||||
pack_end (cpuload_expander, false, false);
|
||||
}
|
||||
|
||||
if (!plugin->get_docs().empty()) {
|
||||
pack_end (description_expander, false, false);
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ PluginDSPLoadWindow::add_processor_to_display (boost::weak_ptr<Processor> w, std
|
|||
{
|
||||
boost::shared_ptr<Processor> p = w.lock ();
|
||||
boost::shared_ptr<PluginInsert> pi = boost::dynamic_pointer_cast<PluginInsert> (p);
|
||||
if (!pi) {
|
||||
if (!pi || !pi->provides_stats ()) {
|
||||
return;
|
||||
}
|
||||
p->DropReferences.connect (_processor_connections, MISSING_INVALIDATOR, boost::bind (&PluginDSPLoadWindow::refill_processors, this), gui_context());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue