Skip to content

Commit 93e0f34

Browse files
committed
Fix group being overwritten in unpackaged apps
1 parent a2ed6aa commit 93e0f34

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/ToastNotifierCompat.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ private void PreprocessToast(ToastNotification notification)
143143
// For apps that don't have identity...
144144
if (!DesktopBridgeHelpers.HasIdentity())
145145
{
146-
// If tag is specified
147-
if (!string.IsNullOrEmpty(notification.Tag))
146+
// If tag is specified and group isn't specified
147+
if (!string.IsNullOrEmpty(notification.Tag) && string.IsNullOrEmpty(notification.Group))
148148
{
149-
// If group isn't specified, we have to add a group since otherwise can't remove without a group
149+
// We have to add a group since otherwise can't remove without a group
150150
notification.Group = ToastNotificationManagerCompat.DEFAULT_GROUP;
151151
}
152152
}

0 commit comments

Comments
 (0)