mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
UI - Fixed a disposed call
This commit is contained in:
parent
833a61ecab
commit
080620f7ae
@ -44,14 +44,6 @@ namespace Artemis.UI.PropertyInput
|
|||||||
NotifyOfPropertyChange(nameof(SelectedDescriptor));
|
NotifyOfPropertyChange(nameof(SelectedDescriptor));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public override void Dispose()
|
|
||||||
{
|
|
||||||
_pluginManagementService.PluginEnabled -= PluginManagementServiceOnPluginManagementLoaded;
|
|
||||||
_pluginManagementService.PluginDisabled -= PluginManagementServiceOnPluginManagementLoaded;
|
|
||||||
base.Dispose();
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnInputValueApplied()
|
protected override void OnInputValueApplied()
|
||||||
{
|
{
|
||||||
if (LayerProperty.ProfileElement is Layer layer)
|
if (LayerProperty.ProfileElement is Layer layer)
|
||||||
@ -67,5 +59,21 @@ namespace Artemis.UI.PropertyInput
|
|||||||
{
|
{
|
||||||
UpdateEnumValues();
|
UpdateEnumValues();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region IDisposable
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Dispose(bool disposing)
|
||||||
|
{
|
||||||
|
if (disposing)
|
||||||
|
{
|
||||||
|
_pluginManagementService.PluginEnabled -= PluginManagementServiceOnPluginManagementLoaded;
|
||||||
|
_pluginManagementService.PluginDisabled -= PluginManagementServiceOnPluginManagementLoaded;
|
||||||
|
}
|
||||||
|
|
||||||
|
base.Dispose(disposing);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user