From 20a0fc70bfeac80ac774453b95ebb9399b3f7060 Mon Sep 17 00:00:00 2001 From: Sylvain Pasutto Date: Sun, 26 Jan 2025 22:02:22 +0100 Subject: [PATCH] pas de QRN si pas en lecture --- morseplayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morseplayer.js b/morseplayer.js index 1327f4c..bfd2dd0 100644 --- a/morseplayer.js +++ b/morseplayer.js @@ -221,7 +221,7 @@ class CWPlayer { value = Math.min(CWPlayer.MAX_QRN, Math.max(CWPlayer.MIN_QRN, value)); if (value == this.options.qrn && value == this.noise?.quantity?.value) return; this.options.qrn = value; - if (this.context) { + if (this.context && this.playing) { this.noise.quantity.value = value; } this.fireEvent('parameterchanged', 'QRN');