mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 00:46:12 +02:00
Add error log when plugin with the same id already exists
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user