Ver Fonte

Removed the priority condition for using the scheduler.

Jeremy Koritzinsky há 9 anos atrás
pai
commit
104e0eb078
1 ficheiros alterados com 2 adições e 5 exclusões
  1. 2 5
      src/Avalonia.Base/AvaloniaObject.cs

+ 2 - 5
src/Avalonia.Base/AvaloniaObject.cs

@@ -307,11 +307,8 @@ namespace Avalonia
 
             var description = GetDescription(source);
 
-            if (priority == BindingPriority.LocalValue)
-            {
-                var scheduler = AvaloniaLocator.Current.GetService<IScheduler>() ?? ImmediateScheduler.Instance;
-                source = source.ObserveOn(scheduler); 
-            }
+            var scheduler = AvaloniaLocator.Current.GetService<IScheduler>() ?? ImmediateScheduler.Instance;
+            source = source.ObserveOn(scheduler); 
 
             if (property.IsDirect)
             {