1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-20 14:47:49 +02:00

Make default value of /Effects/GroupBy match the dialog choice

This commit is contained in:
Paul Licameli 2019-04-04 17:42:01 -04:00
parent ba467b3632
commit 617c1d8785
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ void AddEffectMenuItems(
{
size_t pluginCnt = plugs.size();
wxString groupBy = gPrefs->Read(wxT("/Effects/GroupBy"), wxT("name"));
wxString groupBy = gPrefs->Read(wxT("/Effects/GroupBy"), wxT("sortby:name"));
bool grouped = false;
if (groupBy.StartsWith(wxT("groupby")))
@ -340,7 +340,7 @@ MenuTable::BaseItemPtrs PopulateEffectsMenu(
plug = pm.GetNextPluginForEffectType(type);
}
wxString groupby = gPrefs->Read(wxT("/Effects/GroupBy"), wxT("name"));
wxString groupby = gPrefs->Read(wxT("/Effects/GroupBy"), wxT("sortby:name"));
using Comparator = bool(*)(const PluginDescriptor*, const PluginDescriptor*);
Comparator comp1, comp2;

View File

@ -121,7 +121,7 @@ void EffectsPrefs::PopulateOrExchange(ShuttleGui & S)
wxChoice *c = S.TieChoice(_("S&ort or Group:"),
wxT("/Effects/GroupBy"),
wxT("name"),
wxT("sortby:name"),
visualgroups,
prefsgroups);
if( c ) c->SetMinSize(c->GetBestSize());