mirror of
https://github.com/ankitects/anki.git
synced 2026-01-14 06:23:57 -05:00
Current card get selected in browser
I'm pretty sure it was the way it worked before. I'm surprised that it's not the case anymore. If you open the browser from the reviewer, the current card get selected if it exists. The current note is still entirely displayed. Personally, I want to know easily which is the current card. Opening the browser is the easiest way to do it; assuming I can see the current card selected
This commit is contained in:
parent
3d1e89f014
commit
3763d35149
1 changed files with 4 additions and 3 deletions
|
|
@ -778,10 +778,11 @@ class Browser(QMainWindow):
|
|||
def search(self) -> None:
|
||||
if "is:current" in self._lastSearchTxt:
|
||||
# show current card if there is one
|
||||
c = self.mw.reviewer.card
|
||||
self.card = self.mw.reviewer.card
|
||||
c = self.card = self.mw.reviewer.card
|
||||
nid = c and c.nid or 0
|
||||
self.model.search("nid:%d" % nid)
|
||||
if nid:
|
||||
self.model.search("nid:%d" % nid)
|
||||
self.focusCid(c.id)
|
||||
else:
|
||||
self.model.search(self._lastSearchTxt)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue