1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-05 22:21:15 +01:00

Redefine PrefsPanel::Registration with new Registry system...

... preserving the existing ordering of pages with a combination of
preferences and ordering hints
This commit is contained in:
Paul Licameli
2019-01-16 12:18:40 -05:00
parent 2ee8a6440a
commit a333b7d35a
24 changed files with 94 additions and 77 deletions

View File

@@ -191,12 +191,16 @@ void ModulePrefs::SetModuleStatus(const FilePath &fname, int iStatus){
#ifdef EXPERIMENTAL_MODULE_PREFS
namespace{
PrefsPanel::Registration sAttachment{ 220,
PrefsPanel::Registration sAttachment{ "Module",
[](wxWindow *parent, wxWindowID winid, AudacityProject *)
{
wxASSERT(parent); // to justify safenew
return safenew ModulePrefs(parent, winid);
}
},
false,
// Register with an explicit ordering hint because this one is
// only conditionally compiled
{ "", { Registry::OrderingHint::After, "Mouse" } }
};
}
#endif