mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-03 19:27:14 +00:00
Fixed console rendering bug
Clearing all flows now works properly
This commit is contained in:
parent
e53a2426c1
commit
a34eeb9a28
1 changed files with 5 additions and 2 deletions
|
|
@ -100,9 +100,12 @@ class ConsoleState(flow.State):
|
|||
return ret
|
||||
|
||||
def clear(self):
|
||||
self.focus = None
|
||||
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):
|
||||
attributes = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue