mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Fix double load of plugins
This commit is contained in:
parent
a6609b55ef
commit
4d714f9126
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user