mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-07-23 04:55:45 +00:00
Remove the clear progress timer on window destruction
Prevents callback to destroyed window object
This commit is contained in:
parent
d90248f03c
commit
d83c506a57
1 changed files with 3 additions and 0 deletions
|
|
@ -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'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue