mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-31 17:53:32 +00:00
Plugins - Fixed double-dipping Disable on Dispose
This commit is contained in:
parent
bb1ace0941
commit
dbdeb7568b
@ -73,10 +73,10 @@ namespace Artemis.Core
|
|||||||
|
|
||||||
if (!enable)
|
if (!enable)
|
||||||
{
|
{
|
||||||
IsEnabled = false;
|
|
||||||
|
|
||||||
// Even if disable failed, still leave it in a disabled state to avoid more issues
|
// Even if disable failed, still leave it in a disabled state to avoid more issues
|
||||||
InternalDisable();
|
InternalDisable();
|
||||||
|
IsEnabled = false;
|
||||||
|
|
||||||
OnDisabled();
|
OnDisabled();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@ namespace Artemis.Core
|
|||||||
{
|
{
|
||||||
if (disposing)
|
if (disposing)
|
||||||
{
|
{
|
||||||
Disable();
|
InternalDisable();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user