mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +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)
|
||||
{
|
||||
IsEnabled = false;
|
||||
|
||||
// Even if disable failed, still leave it in a disabled state to avoid more issues
|
||||
InternalDisable();
|
||||
IsEnabled = false;
|
||||
|
||||
OnDisabled();
|
||||
return;
|
||||
}
|
||||
@ -146,7 +146,7 @@ namespace Artemis.Core
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
Disable();
|
||||
InternalDisable();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user