diff --git a/src/DesktopMagic/MainWindow.xaml.cs b/src/DesktopMagic/MainWindow.xaml.cs index 2cf0032..8eb3098 100644 --- a/src/DesktopMagic/MainWindow.xaml.cs +++ b/src/DesktopMagic/MainWindow.xaml.cs @@ -145,6 +145,12 @@ namespace DesktopMagic continue; } + if (plugins.ContainsKey(pluginMetadata.Id)) + { + App.Logger.Log($"Plugin \"{directory}\" has the same id as another plugin", "Main", LogSeverity.Error); + continue; + } + plugins.Add(pluginMetadata.Id, new(pluginMetadata, directory)); } }