Fixed console rendering bug

Clearing all flows now works properly
This commit is contained in:
Jake Drahos 2015-06-11 11:49:23 -05:00
parent e53a2426c1
commit a34eeb9a28
1 changed files with 5 additions and 2 deletions

View File

@ -100,9 +100,12 @@ class ConsoleState(flow.State):
return ret return ret
def clear(self): def clear(self):
self.focus = None
super(ConsoleState, self).clear() super(ConsoleState, self).clear()
if len(self.flows.views) == 0:
self.focus = None
else:
self.focus = 0
self.set_focus(self.focus)
class Options(object): class Options(object):
attributes = [ attributes = [