diff --git a/.config/ags/modules/.commonwidgets/notification.js b/.config/ags/modules/.commonwidgets/notification.js index 121df0b0..57840ff7 100644 --- a/.config/ags/modules/.commonwidgets/notification.js +++ b/.config/ags/modules/.commonwidgets/notification.js @@ -250,8 +250,12 @@ export default ({ className: 'txt-smaller txt-semibold', label: initTimeString, setup: initTimeString == 'Now' ? (self) => { - Utils.timeout(60000, () => self.label = getFriendlyNotifTimeString(notifObject.time)) - } : () => {}, + let id = Utils.timeout(60000, () => { + self.label = getFriendlyNotifTimeString(notifObject.time); + id = null; + }); + self.connect('destroy', () => { if (id) GLib.source_remove(id) }); + } : () => { }, }); const notifText = Box({ valign: Gtk.Align.CENTER,