mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
ags: remove timeout source after notification dismissed (#718)
This commit is contained in:
commit
63d2b30f78
1 changed files with 6 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue