Remove save marked flows prompt

This commit is contained in:
Shadab Zafar 2016-07-23 13:19:59 +05:30
parent d6deec60b0
commit f7217b006b
2 changed files with 3 additions and 13 deletions

View File

@ -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,
)

View File

@ -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