ags(notifications): hold notification on hover

This commit is contained in:
retrozinndev
2025-04-21 15:22:43 -03:00
parent b19d3a33a8
commit 0fedccdf05
3 changed files with 37 additions and 8 deletions
+4 -1
View File
@@ -18,6 +18,9 @@ export const FloatingNotifications = (mon: number) => new Widget.Window({
homogeneous: false,
visible: bind(Notifications.getDefault(), "notifications").as(notifs => notifs.length > 0),
children: bind(Notifications.getDefault(), "notifications").as((notifs) =>
notifs.map((item) => NotificationWidget(item, () => Notifications.getDefault().removeNotification(item)))),
notifs.map((item) => NotificationWidget(item,
() => Notifications.getDefault().removeNotification(item),
false, true))
),
} as Widget.BoxProps)
} as Widget.WindowProps);