mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
if esc hit, don't add/delete tags
This commit is contained in:
parent
52bd264c05
commit
dbfcb44ea7
1 changed files with 2 additions and 2 deletions
|
@ -827,7 +827,7 @@ where id in (%s)""" % ",".join([
|
|||
(tags, r) = ui.utils.getTag(self, self.deck, _("Enter tags to add:"))
|
||||
if label is None:
|
||||
label = _("Add Tags")
|
||||
if tags:
|
||||
if r:
|
||||
self.parent.setProgressParent(self)
|
||||
self.deck.setUndoStart(label)
|
||||
self.deck.addTags(self.selectedFacts(), tags)
|
||||
|
@ -840,7 +840,7 @@ where id in (%s)""" % ",".join([
|
|||
(tags, r) = ui.utils.getTag(self, self.deck, _("Enter tags to delete:"))
|
||||
if label is None:
|
||||
label = _("Delete Tags")
|
||||
if tags:
|
||||
if r:
|
||||
self.parent.setProgressParent(self)
|
||||
self.deck.setUndoStart(label)
|
||||
self.deck.deleteTags(self.selectedFacts(), tags)
|
||||
|
|
Loading…
Reference in a new issue