Merge branch 'end-4:main' into kb_layout_multi_monitor

This commit is contained in:
Hossein Motahari
2024-08-04 17:01:41 +03:00
committed by GitHub
5 changed files with 29 additions and 14 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,