Incoke error popup on UI thread.

This commit is contained in:
Xjph 2022-02-22 08:26:04 -03:30
commit 18f3e3bb89

View file

@ -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()));
}
}