Core - Don't disable already disabled plugins on dispose

This commit is contained in:
Robert committed 2021-02-28 17:15:28 +01:00
1 parent 5b00c8f524
commit eefc5630f3
2 files changed
+1 -6

No files matched your search

@@ -51,12 +51,6 @@ namespace Artemis.Core.DeviceProviders
/// </summary> /// </summary>
public bool CanDetectLogicalLayout { get; protected set; } public bool CanDetectLogicalLayout { get; protected set; }
/// <inheritdoc />
public override void Disable()
{
// Does not happen with device providers, they require Artemis to restart
}
/// <summary> /// <summary>
/// Loads a layout for the specified device and wraps it in an <see cref="ArtemisLayout" /> /// Loads a layout for the specified device and wraps it in an <see cref="ArtemisLayout" />
/// </summary> /// </summary>
@@ -129,6 +129,7 @@ namespace Artemis.Core
internal virtual void InternalDisable() internal virtual void InternalDisable()
{ {
if (IsEnabled)
Disable(); Disable();
} }