File tree 1 file changed +0
-8
lines changed
1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 9
9
Notification ,
10
10
NotificationAction ,
11
11
Notifications ,
12
- NotificationCloseReason ,
13
12
)
14
13
from fabric .widgets .box import Box
15
14
from fabric .widgets .button import Button
@@ -603,13 +602,6 @@ def on_container_destroy(container):
603
602
GLib .source_remove (container ._timestamp_timer_id )
604
603
if hasattr (container , "notification_box" ): # Use container.notification_box
605
604
notif_box = container .notification_box
606
- # Do NOT delete cached image here, it's needed for history. Deletion is handled when clearing history or deleting historical notification explicitly.
607
- # if hasattr(notif_box, "cached_image_path") and notif_box.cached_image_path and os.path.exists(notif_box.cached_image_path):
608
- # try:
609
- # os.remove(notif_box.cached_image_path)
610
- # logger.info(f"Deleted cached image on container destroy: {notif_box.cached_image_path}")
611
- # except Exception as e:
612
- # logger.error(f"Error deleting the cached image on container destroy: {e}")
613
605
container .destroy ()
614
606
GLib .idle_add (self .update_separators )
615
607
self .update_no_notifications_label_visibility () # Update label visibility after removing
You can’t perform that action at this time.
0 commit comments