We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 064ac34 commit 195458fCopy full SHA for 195458f
src/CommunityToolkit.Maui/Options.cs
@@ -96,7 +96,7 @@ public void SetShouldEnableSnackbarOnWindows(bool value)
96
{
97
throw new InvalidOperationException($"{nameof(Application)}.{nameof(Application.Current)} cannot be null when Windows are closed");
98
}
99
- else if (Application.Current.Windows.Count is 1)
+ else if (Application.Current.Windows.Count is 0)
100
101
Microsoft.Windows.AppNotifications.AppNotificationManager.Default.NotificationInvoked -= OnSnackbarNotificationInvoked;
102
Microsoft.Windows.AppNotifications.AppNotificationManager.Default.Unregister();
0 commit comments