aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEloy Robillard <eloy.robillard@gmail.com>2024-04-09 10:53:17 +0200
committerGitHub <noreply@github.com>2024-04-09 08:53:17 +0000
commitf8a46a69d4cf6ebe957e7beb41733652395cecc3 (patch)
tree6ecbc3e170cc858902a50dec9924c281f89b158b
parent1d52f94379730ef587de87ce3ca8f1a30ac0a44a (diff)
Update docs for new add duplicate buttons (#785)
Co-authored-by: StefanVukovic99 <stefanvukovic44@gmail.com>
-rw-r--r--docs/anki-integration.md6
-rw-r--r--ext/settings.html2
-rw-r--r--img/btn-add-duplicate-expression.pngbin0 -> 893 bytes
-rw-r--r--img/btn-add-duplicate-reading.pngbin0 -> 475 bytes
4 files changed, 6 insertions, 2 deletions
diff --git a/docs/anki-integration.md b/docs/anki-integration.md
index 37c7faf8..65c86939 100644
--- a/docs/anki-integration.md
+++ b/docs/anki-integration.md
@@ -103,8 +103,12 @@ icons next to term definitions:
- Clicking ![](../img/btn-add-expression.png) adds the current expression as kanji (e.g. 食べる).
- Clicking ![](../img/btn-add-reading.png) adds the current expression as hiragana or katakana (e.g. たべる).
+If "Check for card duplicates" is on, and a card for the current definition already exists in the deck, you will see the following icons instead:
+
+- Adding the current expression: ![](../img/btn-add-duplicate-expression.png)
+- Adding as hiragana or katakana: ![](../img/btn-add-duplicate-reading.png)
+
Below are some troubleshooting tips you can try if you are unable to create new flashcards:
-- Individual icons will appear grayed out if a flashcard cannot be created for the current definition (e.g. it already exists in the deck).
- If all of the buttons appear grayed out, then you should double-check your deck and model configuration settings.
- If no icons appear at all, make sure that Anki is running in the background and that [AnkiConnect](https://foosoft.net/projects/anki-connect) has been installed.
diff --git a/ext/settings.html b/ext/settings.html
index 773d7cb2..ae559f4a 100644
--- a/ext/settings.html
+++ b/ext/settings.html
@@ -1619,7 +1619,7 @@
<div class="settings-item-inner">
<div class="settings-item-left">
<div class="settings-item-label">Check for card duplicates</div>
- <div class="settings-item-description">When a card is detected as a duplicate, the add buttons will be disabled.</div>
+ <div class="settings-item-description">When a card is detected as a duplicate, the add buttons will turn red and change appearance.</div>
</div>
<div class="settings-item-right">
<label class="toggle"><input type="checkbox" data-setting="anki.checkForDuplicates"
diff --git a/img/btn-add-duplicate-expression.png b/img/btn-add-duplicate-expression.png
new file mode 100644
index 00000000..05673cbb
--- /dev/null
+++ b/img/btn-add-duplicate-expression.png
Binary files differ
diff --git a/img/btn-add-duplicate-reading.png b/img/btn-add-duplicate-reading.png
new file mode 100644
index 00000000..421d5ee0
--- /dev/null
+++ b/img/btn-add-duplicate-reading.png
Binary files differ