Fix double load of plugins

This commit is contained in:
Nikolaj Olsson 2020-04-14 11:54:13 +02:00
parent a6609b55ef
commit 4d714f9126

View File

@ -1102,7 +1102,8 @@ namespace Nikse.SubtitleEdit.Logic
for (int k = tsmi.DropDownItems.Count - 1; k > 0; k--)
{
ToolStripItem x = tsmi.DropDownItems[k];
if (x.Name.StartsWith("Plugin", StringComparison.OrdinalIgnoreCase))
var fileName = (string)x.Tag;
if (!string.IsNullOrEmpty(fileName) && fileName.EndsWith(".dll", StringComparison.OrdinalIgnoreCase))
{
tsmi.DropDownItems.Remove(x);
}