mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
add rename card template ability
This commit is contained in:
parent
8835f079d4
commit
9bbf2c1126
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ class ModelProperties(QDialog):
|
|||
self.renameCard)
|
||||
|
||||
def renameCard(self):
|
||||
txt = ui.utils.getText(_("New name?"), parent=self)
|
||||
if txt[0]:
|
||||
self.currentCard.name = txt[0]
|
||||
self.needRebuild = True
|
||||
self.updateCards()
|
||||
|
||||
|
|
Loading…
Reference in a new issue