File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 66
77namespace Shabby . DynamicProperties ;
88
9- public sealed class Props ( int priority ) : IDisposable
9+ public sealed class Props : IDisposable
1010{
1111 /// Ordered by lowest to highest priority. Equal priority is disambiguated by unique IDs.
1212 /// Note that this is compatible with default object reference equality.
@@ -21,7 +21,7 @@ public sealed class Props(int priority) : IDisposable
2121
2222 public readonly uint UniqueId = _nextId ( ) ;
2323
24- public readonly int Priority = priority ;
24+ public readonly int Priority ;
2525
2626 private readonly Dictionary < int , Prop > props = [ ] ;
2727
@@ -38,6 +38,12 @@ public sealed class Props(int priority) : IDisposable
3838 internal bool NeedsValueUpdate = false ;
3939 internal bool NeedsEntriesUpdate = false ;
4040
41+ public Props ( int priority )
42+ {
43+ Priority = priority ;
44+ SuppressEagerUpdatesThisFrame ( ) ;
45+ }
46+
4147 public void SuppressEagerUpdatesThisFrame ( )
4248 {
4349 SuppressEagerUpdate = true ;
You can’t perform that action at this time.
0 commit comments