fix(ags): prevent cancel drag when new notif or after delete anim
This commit is contained in:
parent
4d0867cbf1
commit
4b3cdd82b9
1 changed files with 11 additions and 5 deletions
|
@ -33,13 +33,19 @@ const Header = () => Box({
|
||||||
const NotificationList = () => Box({
|
const NotificationList = () => Box({
|
||||||
vertical: true,
|
vertical: true,
|
||||||
vexpand: true,
|
vexpand: true,
|
||||||
connections: [[Notifications, box => {
|
connections: [[Notifications, (box, id) => {
|
||||||
|
if (box.children.length == 0) {
|
||||||
box.children = Notifications.notifications
|
box.children = Notifications.notifications
|
||||||
.reverse()
|
.reverse()
|
||||||
.map(n => Notification(n));
|
.map(n => Notification(n));
|
||||||
|
}
|
||||||
|
else if (id) {
|
||||||
|
box.add(Notification(Notifications.getNotification(id)));
|
||||||
|
box.show_all();
|
||||||
|
}
|
||||||
|
|
||||||
box.visible = Notifications.notifications.length > 0;
|
box.visible = Notifications.notifications.length > 0;
|
||||||
}]],
|
}, 'notified']],
|
||||||
});
|
});
|
||||||
|
|
||||||
const Placeholder = () => Revealer({
|
const Placeholder = () => Revealer({
|
||||||
|
|
Loading…
Reference in a new issue