💥 ags(notifications): do not run onClose on hoverLost if holdOnHover is false

This commit is contained in:
retrozinndev
2025-04-21 17:20:44 -03:00
parent 0fedccdf05
commit a0f0dcf90a
+1 -1
View File
@@ -59,7 +59,7 @@ export function NotificationWidget(notification: AstalNotifd.Notification|number
onClose?.(notification); onClose?.(notification);
}, },
onHover: () => holdOnHover && Notifications.getDefault().holdNotification(notification.id), onHover: () => holdOnHover && Notifications.getDefault().holdNotification(notification.id),
onHoverLost: () => onClose?.(notification), onHoverLost: () => holdOnHover && onClose?.(notification),
hexpand: true, hexpand: true,
vexpand: false, vexpand: false,
child: new Widget.Box({ child: new Widget.Box({