Work on centralising lifecycle management in the child monitor

This commit is contained in:
Kovid Goyal
2017-09-07 13:44:12 +05:30
parent 079054f798
commit 5972a37550
5 changed files with 84 additions and 44 deletions

View File

@@ -193,10 +193,7 @@ class Tab:
return window in self.windows
def destroy(self):
if hasattr(self, 'windows'):
for w in self.windows:
w.destroy()
del self.windows
self.windows = deque()
def render(self):
self.borders.render(get_boss().borders_program)