fix(presets): punctuation and numbers modes not being enabled in certain situations

this was done by moving the setter functions to be called after setting the mode config

closes #5454
This commit is contained in:
Miodec 2024-05-29 14:59:59 +02:00
parent 2c0002c919
commit b2a8604994

View file

@ -1874,8 +1874,6 @@ export async function apply(
setMinWpmCustomSpeed(configObj.minWpmCustomSpeed, true);
setMinAcc(configObj.minAcc, true);
setMinAccCustom(configObj.minAccCustom, true);
setNumbers(configObj.numbers, true);
setPunctuation(configObj.punctuation, true);
setHighlightMode(configObj.highlightMode, true);
setTypingSpeedUnit(configObj.typingSpeedUnit, true);
setHideExtraLetters(configObj.hideExtraLetters, true);
@ -1883,6 +1881,8 @@ export async function apply(
setStrictSpace(configObj.strictSpace, true);
setOppositeShiftMode(configObj.oppositeShiftMode, true);
setMode(configObj.mode, true);
setNumbers(configObj.numbers, true);
setPunctuation(configObj.punctuation, true);
setMonkey(configObj.monkey, true);
setRepeatQuotes(configObj.repeatQuotes, true);
setMonkeyPowerLevel(configObj.monkeyPowerLevel, true);