This commit is contained in:
Maximilian Hils 2015-04-26 18:41:27 +02:00
parent ff654730e8
commit 79e587fe04
2 changed files with 3 additions and 2 deletions

View File

@ -299,6 +299,7 @@ class ConsoleMaster(flow.FlowMaster):
def toggle_eventlog(self):
self.eventlog = not self.eventlog
signals.pop_view_state.send(self)
self.view_flowlist()
def _readflows(self, path):

View File

@ -233,8 +233,8 @@ class ConnectionItem(urwid.WidgetWrap):
class FlowListWalker(urwid.ListWalker):
def __init__(self, master, state):
self.master, self.state = master, state
if self.state.flow_count():
self.set_focus(0)
_, i = self.state.get_focus()
self.set_focus(i)
signals.flowlist_change.connect(self.sig_flowlist_change)
def sig_flowlist_change(self, sender):