From 18f3e3bb894d9e5f654cc8a900a3192a4743ddc2 Mon Sep 17 00:00:00 2001 From: Xjph Date: Tue, 22 Feb 2022 08:26:04 -0330 Subject: [PATCH] Incoke error popup on UI thread. --- ObservatoryCore/LogMonitor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ObservatoryCore/LogMonitor.cs b/ObservatoryCore/LogMonitor.cs index bcfc6d0..1a96061 100644 --- a/ObservatoryCore/LogMonitor.cs +++ b/ObservatoryCore/LogMonitor.cs @@ -318,7 +318,8 @@ namespace Observatory } } - ErrorReporter.ShowErrorPopup($"Journal Read Error{(readErrors.Count > 1 ? "s" : "")}", errorContent.ToString()); + Avalonia.Threading.Dispatcher.UIThread.InvokeAsync(() => ErrorReporter.ShowErrorPopup($"Journal Read Error{(readErrors.Count > 1 ? "s" : "")}", errorContent.ToString())); + } }