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 6
6
7
7
namespace Shabby . DynamicProperties ;
8
8
9
- public sealed class Props ( int priority ) : IDisposable
9
+ public sealed class Props : IDisposable
10
10
{
11
11
/// Ordered by lowest to highest priority. Equal priority is disambiguated by unique IDs.
12
12
/// Note that this is compatible with default object reference equality.
@@ -21,7 +21,7 @@ public sealed class Props(int priority) : IDisposable
21
21
22
22
public readonly uint UniqueId = _nextId ( ) ;
23
23
24
- public readonly int Priority = priority ;
24
+ public readonly int Priority ;
25
25
26
26
private readonly Dictionary < int , Prop > props = [ ] ;
27
27
@@ -38,6 +38,12 @@ public sealed class Props(int priority) : IDisposable
38
38
internal bool NeedsValueUpdate = false ;
39
39
internal bool NeedsEntriesUpdate = false ;
40
40
41
+ public Props ( int priority )
42
+ {
43
+ Priority = priority ;
44
+ SuppressEagerUpdatesThisFrame ( ) ;
45
+ }
46
+
41
47
public void SuppressEagerUpdatesThisFrame ( )
42
48
{
43
49
SuppressEagerUpdate = true ;
You can’t perform that action at this time.
0 commit comments