Explorar o código

Fixed problem where BaseObject.PropertyChanged was being called even if value didn't actually change

Kenric Nugteren hai 5 días
pai
achega
9ed995fcf4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      InABox.Core/Objects/BaseObject.cs

+ 1 - 1
InABox.Core/Objects/BaseObject.cs

@@ -384,7 +384,7 @@ namespace InABox.Core
         {
             if (!IsObserving())
             {
-                if (_observingOnlyCascades)
+                if (_observingOnlyCascades && BaseObjectExtensions.HasChanged(before, after))
                 {
                     try
                     {