OnToggleStateChanged Fix
This commit is contained in:
parent
2237b2e355
commit
ccb9666668
|
@ -18,7 +18,7 @@ namespace Syntriax.Modules.ToggleState
|
||||||
|
|
||||||
_isToggled = value;
|
_isToggled = value;
|
||||||
|
|
||||||
if (oldValue = !value)
|
if (oldValue != value)
|
||||||
OnToggleStateChanged?.Invoke(value);
|
OnToggleStateChanged?.Invoke(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace Syntriax.Modules.ToggleState
|
||||||
|
|
||||||
_isToggled = value;
|
_isToggled = value;
|
||||||
|
|
||||||
if (oldValue = !value)
|
if (oldValue != value)
|
||||||
OnToggleStateChanged?.Invoke(value);
|
OnToggleStateChanged?.Invoke(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue