Skip to content

Commit ed50412

Browse files
committed
NOTIFICATIONS ARE HARD (But now they work)
1 parent 5dec800 commit ed50412

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

modules/notifications.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
Notification,
1010
NotificationAction,
1111
Notifications,
12-
NotificationCloseReason,
1312
)
1413
from fabric.widgets.box import Box
1514
from fabric.widgets.button import Button
@@ -603,13 +602,6 @@ def on_container_destroy(container):
603602
GLib.source_remove(container._timestamp_timer_id)
604603
if hasattr(container, "notification_box"): # Use container.notification_box
605604
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}")
613605
container.destroy()
614606
GLib.idle_add(self.update_separators)
615607
self.update_no_notifications_label_visibility() # Update label visibility after removing

0 commit comments

Comments
 (0)