Skip to content

Commit

Permalink
🐛 AvaloniaToastServiceImpl.Show
Browse files Browse the repository at this point in the history
  • Loading branch information
AigioL authored Nov 18, 2024
1 parent 4573a9b commit 063ca17
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ public void Show(ToastIcon icon, string text, int? duration = null)
}
}

var notificationType = GetNotificationType(icon);
NotificationManager.Show(text, notificationType: notificationType);
if (NotificationManager != null)
{
var notificationType = GetNotificationType(icon);
NotificationManager.Show(text, notificationType: notificationType);
}
}

/// <inheritdoc cref="Show(string, int?)"/>
Expand Down

0 comments on commit 063ca17

Please sign in to comment.