mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
fix #568
This commit is contained in:
parent
ff654730e8
commit
79e587fe04
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user