mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Core - Don't disable already disabled plugins on dispose
This commit is contained in:
1 parent
5b00c8f524
commit
eefc5630f3
2 files changed
+2
-7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user