1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 16:49:41 +02:00

Trim space from builtin effect names during display

And do not change state of New effects until the user
specifically requests it...that way they remain "new".
This commit is contained in:
Leland Lucius 2015-05-26 07:04:38 -05:00
parent 46a4c4d84d
commit 0f04b76301

View File

@ -613,7 +613,7 @@ void PluginRegistrationDialog::PopulateOrExchange(ShuttleGui &S)
else if (plugType == PluginTypeStub)
{
wxFileName fname = path;
item.name = fname.GetName();
item.name = fname.GetName().Trim(false).Trim(true);
if (!plug.IsValid())
{
item.state = STATE_New;
@ -2137,7 +2137,7 @@ void PluginManager::CheckForUpdates()
}
}
}
else if (plugType != PluginTypeNone)
else if (plugType != PluginTypeNone && plugType != PluginTypeStub)
{
plug.SetValid(mm.IsPluginValid(plug.GetProviderID(), plugPath));
}