diff --git a/public/js/userconfig.js b/public/js/userconfig.js index 173648223..0f7ab922e 100644 --- a/public/js/userconfig.js +++ b/public/js/userconfig.js @@ -53,6 +53,7 @@ let defaultConfig = { smoothLineScroll: false, alwaysShowDecimalPlaces: false, alwaysShowWordsHistory: false, + singleListCommandLine: "manual", playSoundOnError: false, playSoundOnClick: "off", startGraphsAtZero: true, @@ -190,6 +191,7 @@ function applyConfig(configObj) { setShowTimerProgress(configObj.showTimerProgress, true); setAlwaysShowDecimalPlaces(configObj.alwaysShowDecimalPlaces, true); setAlwaysShowWordsHistory(configObj.alwaysShowWordsHistory, true); + setSingleListCommandLine(configObj.singleListCommandLine, true); setPlaySoundOnError(configObj.playSoundOnError, true); setPlaySoundOnClick(configObj.playSoundOnClick, true); setStopOnError(configObj.stopOnError, true); @@ -429,6 +431,13 @@ function setAlwaysShowWordsHistory(val, nosave) { if (!nosave) saveConfigToCookie(); } +//single list command line +function setSingleListCommandLine(option, nosave) { + if (!option) option = "manual"; + config.singleListCommandLine = option; + if (!nosave) saveConfigToCookie(); +} + //show all lines function toggleShowAllLines() { sal = !config.showAllLines;