From 37474b478eb367ba576488b9f08a67da7b5e035d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 9 Jul 2026 11:41:58 +0530 Subject: [PATCH] Remove the clear progress timer on window destruction Prevents callback to destroyed window object --- kitty/window.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kitty/window.py b/kitty/window.py index ff47fc309..0f447f080 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -1930,6 +1930,9 @@ class Window: def destroy(self) -> None: self.call_watchers(self.watchers.on_close, {}) self.destroyed = True + if self.clear_progress_timer: + remove_timer(self.clear_progress_timer) + self.clear_progress_timer = 0 self.clipboard_request_manager.close() del self.kitten_result_processors if hasattr(self, 'screen'):