From 7723a595ee664b12504d9516b4ea7217ee66c277 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Thu, 25 Apr 2024 09:07:39 +0200 Subject: [PATCH] Calling dialog for outgoing shipcall async to show incoming call asap --- src/BreCalClient/App.xaml | 4 ++-- src/BreCalClient/MainWindow.xaml.cs | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/BreCalClient/App.xaml b/src/BreCalClient/App.xaml index 9e781de..9b54893 100644 --- a/src/BreCalClient/App.xaml +++ b/src/BreCalClient/App.xaml @@ -11,8 +11,8 @@ - 8 - 8 + 10 + 10 diff --git a/src/BreCalClient/MainWindow.xaml.cs b/src/BreCalClient/MainWindow.xaml.cs index f6349c0..51c9f1b 100644 --- a/src/BreCalClient/MainWindow.xaml.cs +++ b/src/BreCalClient/MainWindow.xaml.cs @@ -290,7 +290,11 @@ namespace BreCalClient foreach(ParticipantType pType in esc.ShipcallModel.AssignedParticipants.Keys) scmOut.AssignedParticipants[pType] = esc.ShipcallModel.AssignedParticipants[pType]; } - NewWithModel(scmOut); + + this.Dispatcher.Invoke(() => + { + NewWithModel(scmOut); + }); } } }