notif clear: choreography

This commit is contained in:
end-4
2024-03-25 18:14:38 +07:00
parent 75e03d609b
commit ea16ae5c13
2 changed files with 6 additions and 1 deletions
@@ -102,7 +102,11 @@ export default (props) => {
}),
child: ListActionButton('clear_all', 'Clear', () => {
Notifications.clear();
notificationList.get_children().forEach(ch => ch.attribute.destroyWithAnims())
const kids = notificationList.get_children();
for (let i = 0; i < kids.length; i++) {
const kid = kids[i];
Utils.timeout(userOptions.animations.choreographyDelay * i, () => kid.attribute.destroyWithAnims());
}
})
})
const notifCount = Label({