options: filter -> view_filter

This commit is contained in:
Aldo Cortesi
2017-03-19 13:02:51 +13:00
parent 1b330ba453
commit b1ef4bce30
3 changed files with 6 additions and 6 deletions

View File

@@ -396,8 +396,8 @@ class Options(optmanager.OptManager):
)
self.add_option(
"filter", Optional[str], None,
"Filter view expression."
"view_filter", Optional[str], None,
"Limit which flows are displayed."
)
# Web options

View File

@@ -366,8 +366,8 @@ class FlowListBox(urwid.ListBox):
elif key == "f":
signals.status_prompt.send(
prompt = "Filter View",
text = self.master.options.filter,
callback = self.master.options.setter("filter")
text = self.master.options.view_filter,
callback = self.master.options.setter("view_filter")
)
elif key == "L":
signals.status_prompt_path.send(

View File

@@ -191,10 +191,10 @@ class StatusBar(urwid.WidgetWrap):
r.append("[")
r.append(("heading_key", "i"))
r.append(":%s]" % self.master.options.intercept)
if self.master.options.filter:
if self.master.options.view_filter:
r.append("[")
r.append(("heading_key", "f"))
r.append(":%s]" % self.master.options.filter)
r.append(":%s]" % self.master.options.view_filter)
if self.master.options.stickycookie:
r.append("[")
r.append(("heading_key", "t"))