1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Core - Don't disable already disabled plugins on dispose

This commit is contained in:
Robert 2021-02-28 17:15:28 +01:00
parent 5b00c8f524
commit eefc5630f3
2 changed files with 2 additions and 7 deletions

View File

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

View File

@ -129,7 +129,8 @@ namespace Artemis.Core
internal virtual void InternalDisable()
{
Disable();
if (IsEnabled)
Disable();
}
#region IDisposable