mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
put search prompt in dropdown history so down key does right thing
https://anki.tenderapp.com/discussions/beta-testing/661-anki-210-beta-7#comment_43157037
This commit is contained in:
parent
d5aede7252
commit
7ad8d761d1
1 changed files with 1 additions and 1 deletions
|
@ -535,8 +535,8 @@ class Browser(QMainWindow):
|
|||
self.form.searchButton.clicked.connect(self.onSearchActivated)
|
||||
self.form.searchEdit.lineEdit().returnPressed.connect(self.onSearchActivated)
|
||||
self.form.searchEdit.setCompleter(None)
|
||||
self.form.searchEdit.addItems(self.mw.pm.profile['searchHistory'])
|
||||
self._searchPrompt = _("<type here to search; hit enter to show current deck>")
|
||||
self.form.searchEdit.addItems([self._searchPrompt] + self.mw.pm.profile['searchHistory'])
|
||||
self._lastSearchTxt = "is:current"
|
||||
self.search()
|
||||
# then replace text for easily showing the deck
|
||||
|
|
Loading…
Reference in a new issue