mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-21 15:44:44 +00:00
Restore removal of the clear progress timer on window destruction
5c4f6b39bremoved the timer in Window.destroy() so that it cannot call back into a destroyed window, but100c78bbbdropped those lines again, presumably by accident. Closing a window whose program had reported progress via OSC 9;4 then leaves the timer running, and once the progress goes stale clear_progress_if_needed() raises: AttributeError: 'Window' object has no attribute 'screen'
This commit is contained in:
parent
29c80b42f1
commit
6a7b01eed9
1 changed files with 3 additions and 0 deletions
|
|
@ -2179,6 +2179,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