From 41cb9afa07d07a0696006c3ce2a60f86a7b4ed9e Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 16 Jul 2026 12:13:19 +0545 Subject: [PATCH] fix(src/window/notification): stop polling when revealer is closing/destroyed The callback may execute after _on_notification_finished has fired, causing errors. --- src/window/notification/notification.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/window/notification/notification.py b/src/window/notification/notification.py index f057abc..55805b8 100644 --- a/src/window/notification/notification.py +++ b/src/window/notification/notification.py @@ -1234,6 +1234,11 @@ class ModusNoti(Window): self.notifications.queue_resize() def start_animation(): + # Stop polling if the revealer is already closing/destroyed — + # _on_notification_finished may have fired between the idle_add + # and this callback executing. + if new_box._is_closing: + return False if new_box.get_parent() and new_box.get_realized(): new_box.reveal() return False