From 5876233f7c96de762204dc4f9008b1f5b6b4b983 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 15 Apr 2021 18:42:13 +0100 Subject: [PATCH] fixed shift clicking not working on active quote lengths --- src/js/config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/js/config.js b/src/js/config.js index 56699a19e..b4fc6cbc9 100644 --- a/src/js/config.js +++ b/src/js/config.js @@ -952,7 +952,12 @@ export function setQuoteLength(len, nosave, multipleMode) { } len = parseInt(len); if (multipleMode) { - if (!config.quoteLength.includes(len)) config.quoteLength.push(len); + if (!config.quoteLength.includes(len)) { + config.quoteLength.push(len); + } else { + if (config.quoteLength.length > 1) + config.quoteLength = config.quoteLength.filter((ql) => ql !== len); + } } else { config.quoteLength = [len]; }