Don't show DSP stats of inserts that don't collect them.

This commit is contained in:
Robin Gareus 2018-12-03 22:34:14 +01:00
parent d1cf21634f
commit 78f749ef65
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 4 additions and 2 deletions

View file

@ -157,7 +157,9 @@ GenericPluginUI::GenericPluginUI (boost::shared_ptr<PluginInsert> pi, bool scrol
pack_end (plugin_analysis_expander, false, false);
}
pack_end (cpuload_expander, false, false);
if (insert->provides_stats ()) {
pack_end (cpuload_expander, false, false);
}
if (!plugin->get_docs().empty()) {
pack_end (description_expander, false, false);