wrapping other functions in the dispatcher to ensure they are done on the UI thread

This commit is contained in:
ziti-ci
2020-12-18 13:54:26 -05:00
parent aeefaddbf2
commit ffed047fa3
+5 -3
View File
@@ -879,9 +879,11 @@ namespace ZitiDesktopEdge {
}
public void ShowError(String title, String message) {
ErrorTitle.Content = title;
ErrorDetails.Text = message;
ErrorView.Visibility = Visibility.Visible;
this.Dispatcher.Invoke(() => {
ErrorTitle.Content = title;
ErrorDetails.Text = message;
ErrorView.Visibility = Visibility.Visible;
});
}
private void CloseError(object sender, RoutedEventArgs e) {