Skip to content

Commit b6d32c9

Browse files
committed
Update ItemUserControl.xaml.cs
1 parent dcb2d18 commit b6d32c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Views/ItemUserControl.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private async void OnFavoriteButton(object sender, RoutedEventArgs e)
3030
{
3131
if (string.IsNullOrEmpty(Game.TitleID) || string.IsNullOrEmpty(Game.UrlLastPart))
3232
{
33-
MessageBox.Show(WindowNative.GetWindowHandle(App.MainWindow), "GameId or Title is null or empty", MessageBoxStyle.IconError);
33+
await MessageBox.ShowAsync("GameId or Title is null or empty");
3434
return;
3535
}
3636

@@ -55,7 +55,7 @@ private async void OnFavoriteButton(object sender, RoutedEventArgs e)
5555
catch (Exception ex)
5656
{
5757
Logger?.Error(ex.Message);
58-
MessageBox.Show(WindowNative.GetWindowHandle(App.MainWindow), ex.Message, MessageBoxStyle.IconError);
58+
await MessageBox.ShowAsync(ex.Message);
5959
}
6060
}
6161

0 commit comments

Comments
 (0)