From 16db095abc382cfaab7e3d727cbb62ee84789e73 Mon Sep 17 00:00:00 2001 From: Yoh Deadfall Date: Thu, 28 Oct 2021 11:25:05 +0300 Subject: [PATCH 1/2] Added lost lines in event debugging --- .../Diagnostics/ViewModels/EventTreeNode.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Avalonia.Diagnostics/Diagnostics/ViewModels/EventTreeNode.cs b/src/Avalonia.Diagnostics/Diagnostics/ViewModels/EventTreeNode.cs index a79816390d..e8de22710a 100644 --- a/src/Avalonia.Diagnostics/Diagnostics/ViewModels/EventTreeNode.cs +++ b/src/Avalonia.Diagnostics/Diagnostics/ViewModels/EventTreeNode.cs @@ -117,6 +117,11 @@ namespace Avalonia.Diagnostics.ViewModels _currentEvent.HandledBy = link; } } + + if (!Dispatcher.UIThread.CheckAccess()) + Dispatcher.UIThread.Post(handler); + else + handler(); } private static bool BelongsToDevTool(IVisual v) From ebeee6636394eabf32a40a6193aaa31cb9578495 Mon Sep 17 00:00:00 2001 From: Yoh Deadfall Date: Thu, 28 Oct 2021 11:32:56 +0300 Subject: [PATCH 2/2] Removed white spaces --- src/Avalonia.Diagnostics/Diagnostics/ViewModels/FiredEvent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Avalonia.Diagnostics/Diagnostics/ViewModels/FiredEvent.cs b/src/Avalonia.Diagnostics/Diagnostics/ViewModels/FiredEvent.cs index 8069300922..a9f3182bef 100644 --- a/src/Avalonia.Diagnostics/Diagnostics/ViewModels/FiredEvent.cs +++ b/src/Avalonia.Diagnostics/Diagnostics/ViewModels/FiredEvent.cs @@ -64,7 +64,7 @@ namespace Avalonia.Diagnostics.ViewModels if (EventChain.Count > 0) { var prevLink = EventChain[EventChain.Count - 1]; - + if (prevLink.Route != link.Route) { link.BeginsNewRoute = true;