fix notif clear (#286)

This commit is contained in:
end-4 2024-03-07 17:06:26 +07:00
parent 294ee8a8d4
commit c36d0895bb

View file

@ -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',