Weighing: Use App.MainDispatcher.BeginInvoke in DeliveryAdminWindow

This commit is contained in:
2024-02-21 22:24:05 +01:00
parent c0ff852f5e
commit ae7fdef2ea
2 changed files with 2 additions and 2 deletions

View File

@ -1004,7 +1004,7 @@ namespace Elwig.Windows {
private void Scale_Weighing(object sender, WeighingEventArgs evt) {
if (sender is not IScale scale) return;
OnWeighingResult(scale, evt.Result);
App.MainDispatcher.BeginInvoke(() => OnWeighingResult(scale, evt.Result));
}
private async void SearchInput_TextChanged(object sender, RoutedEventArgs evt) {