mirror of
https://github.com/ankitects/anki.git
synced 2025-11-06 20:57:13 -05:00
Merge branch 'main' into issue-4346
This commit is contained in:
commit
8beb1873b2
2 changed files with 5 additions and 0 deletions
|
|
@ -250,6 +250,7 @@ Danilo Spillebeen <spillebeendanilo@gmail.com>
|
||||||
Matbe766 <matildabergstrom01@gmail.com>
|
Matbe766 <matildabergstrom01@gmail.com>
|
||||||
Josefin Odermalm <112946011+josod827@users.noreply.github.com>
|
Josefin Odermalm <112946011+josod827@users.noreply.github.com>
|
||||||
Amanda Sternberg <mandis.sternberg@gmail.com>
|
Amanda Sternberg <mandis.sternberg@gmail.com>
|
||||||
|
arold0 <arold0@icloud.com>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -289,6 +289,10 @@ class AddCards(QMainWindow):
|
||||||
def _add_current_note(self) -> None:
|
def _add_current_note(self) -> None:
|
||||||
note = self.editor.note
|
note = self.editor.note
|
||||||
|
|
||||||
|
# Prevent adding a note that has already been added (e.g., from double-clicking)
|
||||||
|
if note.id != 0:
|
||||||
|
return
|
||||||
|
|
||||||
if not self._note_can_be_added(note):
|
if not self._note_can_be_added(note):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue