Add history-check hack
This commit is contained in:
parent
0a2069742c
commit
fa98e0c324
@ -1070,6 +1070,9 @@ class AnkiConnect:
|
||||
|
||||
def _addCards(self):
|
||||
super()._addCards()
|
||||
|
||||
# if adding was successful it must mean it was added to the history of the window
|
||||
if len(self.history):
|
||||
self.reject()
|
||||
|
||||
def _reject(self):
|
||||
@ -1088,6 +1091,9 @@ class AnkiConnect:
|
||||
|
||||
def addCards(self):
|
||||
super(AddCardsAndClose, self).addCards()
|
||||
|
||||
# if adding was successful it must mean it was added to the history of the window
|
||||
if len(self.history):
|
||||
self.reject()
|
||||
|
||||
def reject(self):
|
||||
|
Loading…
Reference in New Issue
Block a user