Added Proper Unsubsribe from OnStateUpdated.

Ensures that ReapplyAutomation is called from OnAutomationChange when change occurs.
Reformatted temporary Signature locations and comments to align with the structure of the respective classes.
This commit is contained in:
Cordelia Mist 2025-01-19 09:07:43 -08:00
parent 9c57935a87
commit 1d185e9bfe
4 changed files with 39 additions and 45 deletions

View file

@ -54,6 +54,7 @@ public sealed class StateApi : IGlamourerApiState, IApiService, IDisposable
public void Dispose()
{
_stateChanged.Unsubscribe(OnStateChanged);
_stateUpdated.Unsubscribe(OnStateUpdated);
_gPose.Unsubscribe(OnGPoseChange);
}