From b25d595a2fc034ea5351dc3c6c05dc4bcee03e40 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 7 Mar 2024 17:06:26 +0700 Subject: [PATCH] fix notif clear (#286) --- .config/ags/modules/sideright/notificationlist.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/ags/modules/sideright/notificationlist.js b/.config/ags/modules/sideright/notificationlist.js index 992bed57..7d2200f6 100644 --- a/.config/ags/modules/sideright/notificationlist.js +++ b/.config/ags/modules/sideright/notificationlist.js @@ -85,9 +85,8 @@ export default (props) => { self.toggleClassName('notif-listaction-btn-enabled', Notifications.dnd); }); const clearButton = ListActionButton('clear_all', 'Clear', () => { - // Manual destruction is not necessary - // since Notifications.clear() sends destroy signals to every notif Notifications.clear(); + notificationList.get_children().forEach(ch => ch.attribute.destroyWithAnims()) }); const listTitle = Box({ vpack: 'start',