mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-20 22:48:05 +02:00
Make default value of /Effects/GroupBy match the dialog choice
This commit is contained in:
parent
ba467b3632
commit
617c1d8785
@ -166,7 +166,7 @@ void AddEffectMenuItems(
|
|||||||
{
|
{
|
||||||
size_t pluginCnt = plugs.size();
|
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;
|
bool grouped = false;
|
||||||
if (groupBy.StartsWith(wxT("groupby")))
|
if (groupBy.StartsWith(wxT("groupby")))
|
||||||
@ -340,7 +340,7 @@ MenuTable::BaseItemPtrs PopulateEffectsMenu(
|
|||||||
plug = pm.GetNextPluginForEffectType(type);
|
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*);
|
using Comparator = bool(*)(const PluginDescriptor*, const PluginDescriptor*);
|
||||||
Comparator comp1, comp2;
|
Comparator comp1, comp2;
|
||||||
|
@ -121,7 +121,7 @@ void EffectsPrefs::PopulateOrExchange(ShuttleGui & S)
|
|||||||
|
|
||||||
wxChoice *c = S.TieChoice(_("S&ort or Group:"),
|
wxChoice *c = S.TieChoice(_("S&ort or Group:"),
|
||||||
wxT("/Effects/GroupBy"),
|
wxT("/Effects/GroupBy"),
|
||||||
wxT("name"),
|
wxT("sortby:name"),
|
||||||
visualgroups,
|
visualgroups,
|
||||||
prefsgroups);
|
prefsgroups);
|
||||||
if( c ) c->SetMinSize(c->GetBestSize());
|
if( c ) c->SetMinSize(c->GetBestSize());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user