mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 07:43:54 +02:00
CommandManager keys by CommandId, not plain wxString
This commit is contained in:
@@ -657,7 +657,8 @@ bool KeyConfigPrefs::Commit()
|
||||
bool bFull = gPrefs->ReadBool(wxT("/GUI/Shortcuts/FullDefaults"), false);
|
||||
for (size_t i = 0; i < mNames.size(); i++) {
|
||||
const auto &dkey = bFull ? mDefaultKeys[i] : mStandardDefaultKeys[i];
|
||||
wxString name = wxT("/NewKeys/") + mNames[i];
|
||||
// using GET to interpret CommandID as a config path component
|
||||
auto name = wxT("/NewKeys/") + mNames[i].GET();
|
||||
const auto &key = mNewKeys[i];
|
||||
|
||||
if (gPrefs->HasEntry(name)) {
|
||||
|
||||
Reference in New Issue
Block a user