Only show user-presets in favorite sidebar

Plugins can have hundreds of factory presets, or in case of VST
useless "default" program/presets. Those just clutter up the favorite
plugin-list.
This commit is contained in:
Robin Gareus 2018-12-18 14:05:57 +01:00
parent e4304f3bf2
commit df35d277f5
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 3 additions and 0 deletions

View File

@ -2839,6 +2839,9 @@ Mixer_UI::sync_treeview_from_favorite_order ()
vector<ARDOUR::Plugin::PresetRecord> presets = (*i)->get_presets (true);
for (vector<ARDOUR::Plugin::PresetRecord>::const_iterator j = presets.begin(); j != presets.end(); ++j) {
if (!(*j).user) {
continue;
}
Gtk::TreeModel::Row child_row = *(favorite_plugins_model->append (newrow.children()));
child_row[favorite_plugins_columns.name] = (*j).label;
child_row[favorite_plugins_columns.plugin] = PluginPresetPtr (new PluginPreset(pip, &(*j)));