mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Core - Do not load abstract plugin features
UI - Replace Equals check with EqualityComparer
This commit is contained in:
1 parent
26ad9a3385
commit
a846bd592e
2 files changed
+3
-2
No files matched your search
@@ -396,7 +396,7 @@ internal class PluginManagementService : IPluginManagementService
|
||||
List<Type> featureTypes;
|
||||
try
|
||||
{
|
||||
featureTypes = plugin.Assembly.GetTypes().Where(t => typeof(PluginFeature).IsAssignableFrom(t)).ToList();
|
||||
featureTypes = plugin.Assembly.GetTypes().Where(t => typeof(PluginFeature).IsAssignableFrom(t) && !t.IsAbstract).ToList();
|
||||
}
|
||||
catch (ReflectionTypeLoadException e)
|
||||
{
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Reactive.Disposables;
|
||||
using System.Reactive.Linq;
|
||||
@@ -193,7 +194,7 @@ public abstract class PropertyInputViewModel<T> : PropertyInputViewModel
|
||||
_updating = true;
|
||||
|
||||
// Avoid unnecessary UI updates and validator cycles
|
||||
if (Equals(_inputValue, LayerProperty.CurrentValue))
|
||||
if (EqualityComparer<T>.Default.Equals(_inputValue, LayerProperty.CurrentValue))
|
||||
return;
|
||||
|
||||
// Override the input value
|
||||
|
||||
Reference in new issue
Block a user