From ff9fb68c1c06ca85700cc62ce3f2b12b4a6988fa Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 23 Jan 2021 20:02:39 +0000 Subject: [PATCH] fixed minwpm and acc not turning off --- src/js/tribe.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/js/tribe.js b/src/js/tribe.js index 241623a4e..f496d32d2 100644 --- a/src/js/tribe.js +++ b/src/js/tribe.js @@ -142,10 +142,14 @@ function mp_applyRoomConfig(cfg) { if (cfg.minAcc != null) { setMinAccCustom(cfg.minAcc, true, true); setMinAcc("custom", true, true); + } else { + setMinAcc("off", true, true); } if (cfg.minWpm != null) { setMinWpmCustomSpeed(cfg.minAcc, true, true); setMinWpm("custom", true, true); + } else { + setMinWpm("off", true, true); } customText = cfg.customText; } @@ -153,13 +157,13 @@ function mp_applyRoomConfig(cfg) { function mp_checkIfCanChangeConfig(mp) { if (MP.state >= 10) { if (MP.state >= 20 && MP.state < 29) { - Notifications.add("You can't change settings during the test", 0); + Notifications.add("You can't change settings during the test", 0, 1); return false; } else if (MP.room.isLeader) { return true; } else { if (mp) return true; - Notifications.add("Only the leader can change this setting", 0); + Notifications.add("Only the leader can change this setting", 0, 1); return false; } } else {