Removed autoBakePause flag and statechange trigger in InputWaiter.set() as they are redundant.

This commit is contained in:
n1474335 2024-04-24 17:13:44 +01:00
parent 0a709acafe
commit a79be1e3ef
No known key found for this signature in database
GPG key ID: D15457B7B4AF3F37
2 changed files with 4 additions and 26 deletions

View file

@ -215,7 +215,8 @@ class InputWaiter {
* Handler for Chr Enc change events
* Sets the input character encoding
* @param {number} chrEncVal
* @param {boolean} [manual=false]
* @param {boolean} [manual=false] - Flag to indicate the encoding was set by the user
* @param {boolean} [internal=false] - Flag to indicate this was set internally, i.e. by loading from URI
*/
chrEncChange(chrEncVal, manual=false, internal=false) {
if (typeof chrEncVal !== "number") return;
@ -641,10 +642,6 @@ class InputWaiter {
const inputStr = toBase64(inputVal, "A-Za-z0-9+/");
this.app.updateURL(true, inputStr);
}
// Trigger a state change
if (!silent) window.dispatchEvent(this.manager.statechange);
}.bind(this));
}