mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-24 04:14:57 +08:00
Fixed console rendering bug
Clearing all flows now works properly
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user