src/StructuredLogViewer.Avalonia/Controls/BuildControl.xaml.cs [542:562]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /// /// This is needed as a workaround for a weird bug. When the breadcrumb spans multiple lines /// and we click on an item on the first line, it truncates the breadcrumb up to that item. /// The fact that the breadcrumb moves down while the Mouse is captured results in a MouseMove /// in the ListBox, which triggers moving selection to top and selecting the first item. /// Without this "reentrancy" guard the event would be handled twice, with just the root /// of the chain left in the breadcrumb at the end. /// private bool isProcessingBreadcrumbClick = false; internal static TimeSpan Elapsed; private void BreadCrumb_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (isProcessingBreadcrumbClick) { return; } isProcessingBreadcrumbClick = true; var node = breadCrumb.SelectedItem as TreeNode; if (node != null) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - src/StructuredLogViewer/Controls/BuildControl.xaml.cs [963:983]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - /// /// This is needed as a workaround for a weird bug. When the breadcrumb spans multiple lines /// and we click on an item on the first line, it truncates the breadcrumb up to that item. /// The fact that the breadcrumb moves down while the Mouse is captured results in a MouseMove /// in the ListBox, which triggers moving selection to top and selecting the first item. /// Without this "reentrancy" guard the event would be handled twice, with just the root /// of the chain left in the breadcrumb at the end. /// private bool isProcessingBreadcrumbClick = false; internal static TimeSpan Elapsed; private void BreadCrumb_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (isProcessingBreadcrumbClick) { return; } isProcessingBreadcrumbClick = true; var node = breadCrumb.SelectedItem as TreeNode; if (node != null) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -