until thread searches are supported, do not show prompt on [/]

themes
Blake DeMarcy 2017-09-09 18:41:09 -05:00
parent a38d93edef
commit 1ab36bd984
1 changed files with 5 additions and 1 deletions

View File

@ -711,12 +711,16 @@ class App(object):
def search_prompt(self): def search_prompt(self):
# XXX: remove if when thread search is supported
if self.mode != "index":
return
popup = OptionsMenu( popup = OptionsMenu(
urwid.ListBox( urwid.ListBox(
urwid.SimpleFocusListWalker([ urwid.SimpleFocusListWalker([
urwid.Text(("button", "Enter a query:")), urwid.Text(("button", "Enter a query:")),
urwid.AttrMap(StringPrompt(self.search_callback), "opt_prompt"), 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()) **frame_theme())