fix bug of DispEngine blocked on dispose.

This commit is contained in:
iambossTC 2025-04-21 00:57:33 +08:00
parent b68c5618ae
commit 57a3750042

View File

@ -236,7 +236,7 @@ namespace Hi.Wpf.Disp
byte[] arr = new byte[n];
for (int i = 0; i < n; i++)
arr[i] = data[i];
// Update UI on the UI thread
DisplayerPane.Dispatcher.InvokeAsync(() =>
{