2
0
mirror of https://github.com/9ParsonsB/Pulsar.git synced 2025-04-05 17:39:39 -04:00

Incoke error popup on UI thread.

This commit is contained in:
Xjph 2022-02-22 08:26:04 -03:30
parent 701f6f0b1c
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()));
}
}