mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
When paging through flows in flowview, indicate when there are no more flows.
This commit is contained in:
parent
a6df72cfc8
commit
6dc945571d
@ -360,6 +360,7 @@ class FlowView(common.WWrap):
|
|||||||
else:
|
else:
|
||||||
new_flow, new_idx = self.state.get_prev(idx)
|
new_flow, new_idx = self.state.get_prev(idx)
|
||||||
if new_idx is None:
|
if new_idx is None:
|
||||||
|
self.master.statusbar.message("No more flows!")
|
||||||
return
|
return
|
||||||
self.master.view_flow(new_flow)
|
self.master.view_flow(new_flow)
|
||||||
|
|
||||||
@ -387,7 +388,7 @@ class FlowView(common.WWrap):
|
|||||||
def keypress(self, size, key):
|
def keypress(self, size, key):
|
||||||
if key == " ":
|
if key == " ":
|
||||||
self.view_next_flow(self.flow)
|
self.view_next_flow(self.flow)
|
||||||
return key
|
return
|
||||||
|
|
||||||
key = common.shortcuts(key)
|
key = common.shortcuts(key)
|
||||||
if self.state.view_flow_mode == common.VIEW_FLOW_REQUEST:
|
if self.state.view_flow_mode == common.VIEW_FLOW_REQUEST:
|
||||||
|
Loading…
Reference in New Issue
Block a user