mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
suggest searching when sorting not possible
This commit is contained in:
parent
6304f85312
commit
788a2f1989
1 changed files with 11 additions and 2 deletions
|
@ -553,6 +553,15 @@ class Browser(QMainWindow):
|
|||
type = self.model.activeCols[idx]
|
||||
noSort = ("question", "answer", "template", "deck")
|
||||
if type in noSort:
|
||||
if type == "template":
|
||||
showInfo(_("""\
|
||||
This column can't be sorted on, but you can search for individual card types,
|
||||
such as 'card:Card 1'."""))
|
||||
elif type == "deck":
|
||||
showInfo(_("""\
|
||||
This column can't be sorted on, but you can search for specific decks
|
||||
by clicking on one on the left."""))
|
||||
else:
|
||||
showInfo(_("Sorting on this column is not supported. Please "
|
||||
"choose another."))
|
||||
type = self.col.conf['sortType']
|
||||
|
|
Loading…
Reference in a new issue