Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Fixed crash for showing dialog on remove chat failed
Browse files Browse the repository at this point in the history
  • Loading branch information
COM8 committed May 6, 2020
1 parent 6d570f1 commit 331109b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions UWPX_UI/Controls/Chat/ChatMasterControl.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.Threading.Tasks;
using Data_Manager2.Classes;
using Shared.Classes;
using UWPX_UI.Dialogs;
using UWPX_UI.Pages;
using UWPX_UI_Context.Classes;
Expand Down Expand Up @@ -167,11 +168,14 @@ private static void ChatPropertyChanged(DependencyObject d, DependencyPropertyCh

private async void VIEW_MODEL_OnError(ChatMasterControlContext sender, OnErrorEventArgs args)
{
InfoDialog dialog = new InfoDialog(args.TITLE, args.MESSAGE)
await SharedUtils.CallDispatcherAsync(async () =>
{
Foreground = new SolidColorBrush(Colors.Red)
};
await UiUtils.ShowDialogAsync(dialog);
InfoDialog dialog = new InfoDialog(args.TITLE, args.MESSAGE)
{
Foreground = new SolidColorBrush(Colors.Red)
};
await UiUtils.ShowDialogAsync(dialog);
});
}

private async void AccountActionAccept_ibtn_Click(IconButtonControl sender, RoutedEventArgs args)
Expand Down

0 comments on commit 331109b

Please sign in to comment.