File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,15 @@ public string TypeNameAndAssembly
36
36
public bool SuppressLogs
37
37
{
38
38
get => _suppressLogs . boolValue ;
39
- set
40
- {
41
- _suppressLogs . boolValue = value ;
39
+ set => SetSuppressLogs ( value , true ) ;
40
+ }
41
+
42
+ public void SetSuppressLogs ( bool value , bool applyImmediately )
43
+ {
44
+ _suppressLogs . boolValue = value ;
45
+
46
+ if ( applyImmediately )
42
47
_parentObject . ApplyModifiedProperties ( ) ;
43
- }
44
48
}
45
49
46
50
public bool TypeNameHasMultipleDifferentValues => TypeNameProperty . hasMultipleDifferentValues ;
@@ -80,7 +84,6 @@ public void SetType(Type type)
80
84
{
81
85
TypeNameProperty . stringValue = TypeReference . GetTypeNameAndAssembly ( type ) ;
82
86
_guidProperty . stringValue = TypeReference . GetClassGUID ( type ) ;
83
- _parentObject . ApplyModifiedProperties ( ) ;
84
87
}
85
88
86
89
private static string GetClassGuidFromTypeName ( string typeName )
You can’t perform that action at this time.
0 commit comments