From 1ab36bd984ce32dd12762a9b9565fe8175859e61 Mon Sep 17 00:00:00 2001 From: Blake DeMarcy Date: Sat, 9 Sep 2017 18:41:09 -0500 Subject: [PATCH] until thread searches are supported, do not show prompt on [/] --- clients/urwid/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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())