forked from Shinonome/dots-hyprland
fix notif clear (#286)
This commit is contained in:
@@ -85,9 +85,8 @@ export default (props) => {
|
|||||||
self.toggleClassName('notif-listaction-btn-enabled', Notifications.dnd);
|
self.toggleClassName('notif-listaction-btn-enabled', Notifications.dnd);
|
||||||
});
|
});
|
||||||
const clearButton = ListActionButton('clear_all', 'Clear', () => {
|
const clearButton = ListActionButton('clear_all', 'Clear', () => {
|
||||||
// Manual destruction is not necessary
|
|
||||||
// since Notifications.clear() sends destroy signals to every notif
|
|
||||||
Notifications.clear();
|
Notifications.clear();
|
||||||
|
notificationList.get_children().forEach(ch => ch.attribute.destroyWithAnims())
|
||||||
});
|
});
|
||||||
const listTitle = Box({
|
const listTitle = Box({
|
||||||
vpack: 'start',
|
vpack: 'start',
|
||||||
|
|||||||
Reference in New Issue
Block a user