aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-09-09 18:41:09 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-09-09 18:41:09 -0500
commit1ab36bd984ce32dd12762a9b9565fe8175859e61 (patch)
treed5dd968b9179e776fefbc0b27f5577c1b152104c
parenta38d93edef06c4930da19a651f46dfad1eb5e95d (diff)
downloadbbj-1ab36bd984ce32dd12762a9b9565fe8175859e61.tar.gz
until thread searches are supported, do not show prompt on [/]
-rw-r--r--clients/urwid/main.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/clients/urwid/main.py b/clients/urwid/main.py
index aad4392..a80bcb2 100644
--- a/clients/urwid/main.py
+++ b/clients/urwid/main.py
@@ -711,12 +711,16 @@ class App(object):
def search_prompt(self):
+ # XXX: remove if when thread search is supported
+ if self.mode != "index":
+ return
+
popup = OptionsMenu(
urwid.ListBox(
urwid.SimpleFocusListWalker([
urwid.Text(("button", "Enter a query:")),
urwid.AttrMap(StringPrompt(self.search_callback), "opt_prompt"),
- urwid.Text("Use a blank query to reset the index.")
+ urwid.Text("Use a blank query to reset the {}.".format(self.mode))
])),
**frame_theme())
Un proyecto texto-plano.xyz