mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-01-30 14:58:38 +00:00
Remove save marked flows prompt
This commit is contained in:
parent
d6deec60b0
commit
f7217b006b
@ -126,16 +126,11 @@ class ConnectionItem(urwid.WidgetWrap):
|
||||
return True
|
||||
|
||||
def save_flows_prompt(self, k):
|
||||
if k == "a":
|
||||
if k == "l":
|
||||
signals.status_prompt_path.send(
|
||||
prompt = "Save all flows to",
|
||||
prompt = "Save listed flows to",
|
||||
callback = self.master.save_flows
|
||||
)
|
||||
elif k == "m":
|
||||
signals.status_prompt_path.send(
|
||||
prompt = "Save marked flows to",
|
||||
callback = self.master.save_marked_flows
|
||||
)
|
||||
else:
|
||||
signals.status_prompt_path.send(
|
||||
prompt = "Save this flow to",
|
||||
@ -244,9 +239,8 @@ class ConnectionItem(urwid.WidgetWrap):
|
||||
self,
|
||||
prompt = "Save",
|
||||
keys = (
|
||||
("all flows", "a"),
|
||||
("listed flows", "l"),
|
||||
("this flow", "t"),
|
||||
("marked flows", "m"),
|
||||
),
|
||||
callback = self.save_flows_prompt,
|
||||
)
|
||||
|
@ -632,10 +632,6 @@ class ConsoleMaster(flow.FlowMaster):
|
||||
def save_flows(self, path):
|
||||
return self._write_flows(path, self.state.view)
|
||||
|
||||
def save_marked_flows(self, path):
|
||||
marked_flows = [f for f in self.state.view if f.marked]
|
||||
return self._write_flows(path, marked_flows)
|
||||
|
||||
def load_flows_callback(self, path):
|
||||
if not path:
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user