Ensure icon cache is cleared at exit

This commit is contained in:
Kovid Goyal
2024-07-29 15:24:18 +05:30
parent 7023e1506b
commit eb1bb493a7
3 changed files with 12 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ class NotificationManager(NotificationManager):
def do_test(self: 'TestNotifications', tdir: str) -> None:
di = DesktopIntegration(None)
ch = Channel()
nm = NotificationManager(di, ch, lambda *a, **kw: None, base_cache_dir=tdir)
nm = NotificationManager(di, ch, lambda *a, **kw: None, base_cache_dir=tdir, cleanup_at_exit=False)
di.notification_manager = nm
def reset():