From 82fa427305890631188ab91f313fcc8ebd255c57 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sat, 1 Jan 2022 21:37:41 -0500 Subject: [PATCH] Restore the default copy count to 1 --- resources/TTSDeck.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/TTSDeck.js b/resources/TTSDeck.js index bc3b28b..2ceb80a 100644 --- a/resources/TTSDeck.js +++ b/resources/TTSDeck.js @@ -30,11 +30,12 @@ function unload() { // Creates a test button during development that calls unload() to clean up. testProjectScript(); +// TODO: allow setting a default copy count // Hack to override the default return value of 1 function copyCount(copies_list, name) { const entries = copies_list.getListEntries().map(x => String(x)); if (entries.indexOf(String(name)) == -1) { - return 2; + return 1; } else { return copies_list.getCopyCount(name); }