From 1dcfbf6ba6516d05f756d26bf84049d94776ab14 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 14 Jan 2021 22:42:11 -0500 Subject: Support suspending new anki cards (#1240) * Add new option: anki.suspendNewCards * Update Anki APIs * Suspend card based on options * Add setting * Disable wrap for toggle property --- ext/bg/js/options.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/bg/js/options.js') diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 0d3e42a1..cbc390da 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -687,6 +687,8 @@ class OptionsUtil { // Added sentenceParsing.enableTerminationCharacters. // Added sentenceParsing.terminationCharacters. // Changed general.popupActionBarLocation. + // Added inputs.hotkeys. + // Added anki.suspendNewCards. for (const profile of options.profiles) { profile.options.translation.textReplacements = { searchOriginal: true, @@ -731,6 +733,7 @@ class OptionsUtil { {action: 'copyHostSelection', key: 'KeyC', modifiers: ['ctrl'], scopes: ['popup', 'search'], enabled: true} ] }; + profile.options.anki.suspendNewCards = false; } return options; } -- cgit v1.2.3