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:
parent
5b00c8f524
commit
eefc5630f3
@ -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>
|
||||
|
||||
@ -129,7 +129,8 @@ namespace Artemis.Core
|
||||
|
||||
internal virtual void InternalDisable()
|
||||
{
|
||||
Disable();
|
||||
if (IsEnabled)
|
||||
Disable();
|
||||
}
|
||||
|
||||
#region IDisposable
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user