Fix: translation request was made even though useAutoTranslateInput is turned off (#783)

# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
Because of this, even when useAutoTranslateInput is turned off, Google
translation request runs every time a sentence is modified.


![image](https://github.com/user-attachments/assets/74133172-bbf0-439a-a715-cb253f94141e)
This commit is contained in:
kwaroran
2025-03-13 16:38:12 +09:00
committed by GitHub

View File

@@ -318,6 +318,9 @@
});
async function updateInputTransateMessage(reverse: boolean) {
if(!DBState.db.useAutoTranslateInput){
return
}
if(isExpTranslator()){
if(!reverse){
messageInputTranslate = ''