*final* fix of the plugin registry.

This commit is contained in:
2025-08-20 16:14:19 +01:00
parent d9c88821cf
commit d5ef2c874d
3 changed files with 7 additions and 8 deletions

View File

@@ -64,13 +64,13 @@ public class PluginRegister
}
/// <summary>List of writable media image plugins</summary>
public SortedDictionary<string, IWritableImage> WritableImages
public SortedDictionary<string, IBaseWritableImage> WritableImages
{
get
{
SortedDictionary<string, IWritableImage> mediaImages = new();
SortedDictionary<string, IBaseWritableImage> mediaImages = new();
foreach(IWritableImage plugin in _serviceProvider.GetServices<IWritableImage>())
foreach(IBaseWritableImage plugin in _serviceProvider.GetServices<IBaseWritableImage>())
mediaImages[plugin.Name.ToLower()] = plugin;
return mediaImages;