mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Merge pull request #403 from Lucas-C/master
Using uppercase C to 'clear' display mode, because lowercase 'c' is used for css
This commit is contained in:
commit
807a8eb759
@ -637,11 +637,10 @@ class FlowView(common.WWrap):
|
|||||||
return self._view_nextprev_flow("prev", flow)
|
return self._view_nextprev_flow("prev", flow)
|
||||||
|
|
||||||
def change_this_display_mode(self, t):
|
def change_this_display_mode(self, t):
|
||||||
self.state.add_flow_setting(
|
key = (self.state.view_flow_mode, "prettyview")
|
||||||
self.flow,
|
value = contentview.get_by_shortcut(t)
|
||||||
(self.state.view_flow_mode, "prettyview"),
|
if value:
|
||||||
contentview.get_by_shortcut(t)
|
self.state.add_flow_setting(self.flow, key, value)
|
||||||
)
|
|
||||||
self.master.refresh_flow(self.flow)
|
self.master.refresh_flow(self.flow)
|
||||||
|
|
||||||
def delete_body(self, t):
|
def delete_body(self, t):
|
||||||
@ -749,7 +748,7 @@ class FlowView(common.WWrap):
|
|||||||
self.master.statusbar.message("")
|
self.master.statusbar.message("")
|
||||||
elif key == "m":
|
elif key == "m":
|
||||||
p = list(contentview.view_prompts)
|
p = list(contentview.view_prompts)
|
||||||
p.insert(0, ("clear", "c"))
|
p.insert(0, ("Clear", "C"))
|
||||||
self.master.prompt_onekey(
|
self.master.prompt_onekey(
|
||||||
"Display mode",
|
"Display mode",
|
||||||
p,
|
p,
|
||||||
|
Loading…
Reference in New Issue
Block a user