console: update flow list when state is modified

This commit is contained in:
Aldo Cortesi 2016-09-11 20:06:21 +12:00
parent 34e17efaa0
commit 97b15b58b7

View File

@ -66,11 +66,13 @@ class ConsoleState(flow.State):
def add_flow(self, f): def add_flow(self, f):
super(ConsoleState, self).add_flow(f) super(ConsoleState, self).add_flow(f)
signals.flowlist_change.send(self)
self.update_focus() self.update_focus()
return f return f
def update_flow(self, f): def update_flow(self, f):
super(ConsoleState, self).update_flow(f) super(ConsoleState, self).update_flow(f)
signals.flowlist_change.send(self)
self.update_focus() self.update_focus()
return f return f