mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
truncate start of history, not end of it
This commit is contained in:
parent
584b23cdcd
commit
7ebdf0f92d
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class AddCards(QDialog):
|
|||
def addHistory(self, note):
|
||||
txt = stripHTMLMedia(",".join(note.fields))[:30]
|
||||
self.history.insert(0, (note.id, txt))
|
||||
self.history = self.history[-15:]
|
||||
self.history = self.history[:15]
|
||||
self.historyButton.setEnabled(True)
|
||||
|
||||
def onHistory(self):
|
||||
|
|
Loading…
Reference in a new issue