mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-10 12:09:12 +00:00
Avoid traceback during shutdown
This commit is contained in:
parent
2fb3bc13e4
commit
b250667df5
1 changed files with 2 additions and 1 deletions
|
|
@ -1389,7 +1389,8 @@ class Window:
|
|||
if timer_id is not None: # this is a timer callback
|
||||
self.clear_progress_timer = 0
|
||||
if self.progress.clear_progress():
|
||||
self.screen.set_progress(0, 0)
|
||||
if hasattr(self, 'screen'):
|
||||
self.screen.set_progress(0, 0)
|
||||
if (tab := self.tabref()) is not None:
|
||||
tab.update_progress()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue