mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Plugins - Better disable features on dispose
This commit is contained in:
1 parent
6a929cdcc0
commit
c08e4a49a3
1 file changed
+2
-11
@@ -75,7 +75,8 @@ namespace Artemis.Core
|
||||
/// </param>
|
||||
protected virtual void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing) InternalDisable();
|
||||
if (disposing)
|
||||
SetEnabled(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -104,16 +105,6 @@ namespace Artemis.Core
|
||||
Profiler.StopMeasurement("Update");
|
||||
}
|
||||
|
||||
internal void StartRenderMeasure()
|
||||
{
|
||||
Profiler.StartMeasurement("Render");
|
||||
}
|
||||
|
||||
internal void StopRenderMeasure()
|
||||
{
|
||||
Profiler.StopMeasurement("Render");
|
||||
}
|
||||
|
||||
internal void SetEnabled(bool enable, bool isAutoEnable = false)
|
||||
{
|
||||
if (enable == IsEnabled)
|
||||
|
||||
Reference in new issue
Block a user