We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6133ad1 commit a1cc628Copy full SHA for a1cc628
src/CommunityToolkit.Maui/Options.cs
@@ -87,7 +87,7 @@ public void SetShouldEnableSnackbarOnWindows(bool value)
87
{
88
throw new InvalidOperationException($"{nameof(Application)}.{nameof(Application.Current)} cannot be null when Windows are closed");
89
}
90
- else if (Application.Current.Windows.Count is 1)
+ else if (Application.Current.Windows.Count is 0)
91
92
Microsoft.Windows.AppNotifications.AppNotificationManager.Default.NotificationInvoked -= OnSnackbarNotificationInvoked;
93
Microsoft.Windows.AppNotifications.AppNotificationManager.Default.Unregister();
0 commit comments