mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 09:01:15 +02:00
PrefsPanel::Factory is a specialization of std::function...
... We don't need to define a class for it
This commit is contained in:
@@ -1555,9 +1555,8 @@ bool CommandManager::HandleMenuID(int id, CommandFlag flags, CommandMask mask)
|
||||
#ifdef EXPERIMENTAL_EASY_CHANGE_KEY_BINDINGS
|
||||
if (::wxGetMouseState().ShiftDown()) {
|
||||
// Only want one page of the preferences
|
||||
KeyConfigPrefsFactory keyConfigPrefsFactory{ entry->name };
|
||||
PrefsDialog::Factories factories;
|
||||
factories.push_back(&keyConfigPrefsFactory);
|
||||
factories.push_back(KeyConfigPrefsFactory( entry->name ));
|
||||
GlobalPrefsDialog dialog(GetActiveProject(), factories);
|
||||
dialog.ShowModal();
|
||||
MenuCreator::RebuildAllMenuBars();
|
||||
|
Reference in New Issue
Block a user