diff --git a/ext/js/display/display-anki.js b/ext/js/display/display-anki.js index 3b8674f8a3..984094042b 100644 --- a/ext/js/display/display-anki.js +++ b/ext/js/display/display-anki.js @@ -642,10 +642,18 @@ export class DisplayAnki { const button = this._saveButtonFind(dictionaryEntryIndex, cardFormatIndex); if (button === null || button.disabled) { return; } - this._hideErrorNotification(true); - /** @type {Error[]} */ const allErrors = []; + + button.disabled = true; + setTimeout(() => { + if (this._duplicateBehavior !== 'prevent' || allErrors.length > 0) { + button.disabled = false; + } + }, 2500); + + this._hideErrorNotification(true); + const progressIndicatorVisible = this._display.progressIndicatorVisible; const overrideToken = progressIndicatorVisible.setOverride(true); try {