1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 09:39:42 +02:00

Strip ... from Nyquist effect names again (but none shipped have it)

This commit is contained in:
Paul Licameli 2018-03-15 13:39:36 -04:00
parent b45b4c4a7a
commit 01a45a6b36

View File

@ -1740,6 +1740,13 @@ bool NyquistEffect::Parse(
if (len >= 2 && tokens[0] == wxT("name")) {
mName = UnQuote(tokens[1]);
// Strip ... from name if it's present, perhaps in third party plug-ins
// Menu system puts ... back if there are any controls
// This redundant naming convention must NOT be followed for
// shipped Nyquist effects with internationalization. Else the msgid
// later looked up will lack the ... and will not be found.
if (mName.EndsWith(wxT("...")))
mName = mName.RemoveLast(3);
return true;
}