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. 
This commit is contained in:
@@ -318,6 +318,9 @@
|
||||
});
|
||||
|
||||
async function updateInputTransateMessage(reverse: boolean) {
|
||||
if(!DBState.db.useAutoTranslateInput){
|
||||
return
|
||||
}
|
||||
if(isExpTranslator()){
|
||||
if(!reverse){
|
||||
messageInputTranslate = ''
|
||||
|
||||
Reference in New Issue
Block a user