fixed shift clicking not working on active quote lengths

This commit is contained in:
Jack 2021-04-15 18:42:13 +01:00
parent 7b2adbc95b
commit 5876233f7c

View file

@ -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];
}