OnToggleStateChanged Fix

This commit is contained in:
Syntriax 2022-12-02 00:00:45 +03:00
parent 2237b2e355
commit ccb9666668
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ namespace Syntriax.Modules.ToggleState
_isToggled = value;
if (oldValue = !value)
if (oldValue != value)
OnToggleStateChanged?.Invoke(value);
}
}

View File

@ -15,7 +15,7 @@ namespace Syntriax.Modules.ToggleState
_isToggled = value;
if (oldValue = !value)
if (oldValue != value)
OnToggleStateChanged?.Invoke(value);
}
}