From: Robin Gareus Date: Tue, 18 Dec 2018 13:05:57 +0000 (+0100) Subject: Only show user-presets in favorite sidebar X-Git-Url: https://main.carlh.net/gitweb/?p=ardour.git;a=commitdiff_plain;h=df35d277f579bfe9f4bf8c2ff69f95d2f62e3967 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. --- diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index b56ed4d601..5e3c85d40f 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -2839,6 +2839,9 @@ Mixer_UI::sync_treeview_from_favorite_order () vector presets = (*i)->get_presets (true); for (vector::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)));