Skip to content

Commit

Permalink
fix: PrefsParam<T>.RegisterValueChangedCallbackAndCallOnce() > PrefsP…
Browse files Browse the repository at this point in the history
…aram.RegisterValueChangedCallbackAndCallOnce()
  • Loading branch information
fuqunaga committed Apr 19, 2024
1 parent 1102cce commit dc03593
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Packages/PrefsGUI/Runtime/PrefsParam/PrefsParamExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ namespace PrefsGUI
{
public static class PrefsParamExtension
{
public static void RegisterValueChangedCallbackAndCallOnce<T>(this PrefsParam<T> param, Action callback)
where T : struct
public static void RegisterValueChangedCallbackAndCallOnce(this PrefsParam param, Action callback)
{
param.RegisterValueChangedCallback(callback);
callback?.Invoke();
Expand Down

0 comments on commit dc03593

Please sign in to comment.