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 974c586 commit 5a21309Copy full SHA for 5a21309
files/usr/share/cinnamon/applets/[email protected]/applet.js
@@ -235,11 +235,14 @@ class Notifications {
235
this._appGroupList.forEach(appGroup => {
236
if (!appGroup.groupState || appGroup.groupState.willUnmount) return;
237
if (appId === appGroup.groupState.appId) {
238
- appGroup.notifications.forEach(notification => {
239
- if (!notification._destroyed) {
240
- notification.destroy(NotificationDestroyedReason.DISMISSED);
+ let i = 0;
+ while (appGroup.notifications[i]) {
+ if (!appGroup.notifications[i]._destroyed) {
241
+ appGroup.notifications[i].destroy(NotificationDestroyedReason.DISMISSED);
242
+ } else {
243
+ i++;
244
}
- });
245
+ }
246
appGroup.notifications = [];
247
this.updateNotificationsBadge(appGroup);
248
0 commit comments