mirror of
https://github.com/openziti/desktop-edge-win.git
synced 2026-10-14 00:29:48 +00:00
wrapping other functions in the dispatcher to ensure they are done on the UI thread
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user