mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -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)
|
self.renameCard)
|
||||||
|
|
||||||
def renameCard(self):
|
def renameCard(self):
|
||||||
|
txt = ui.utils.getText(_("New name?"), parent=self)
|
||||||
|
if txt[0]:
|
||||||
|
self.currentCard.name = txt[0]
|
||||||
self.needRebuild = True
|
self.needRebuild = True
|
||||||
self.updateCards()
|
self.updateCards()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue