fix(translate): prevent crash caused by execution order
This commit is contained in:
parent
45f101f9ec
commit
746a8e2536
|
@ -12,7 +12,7 @@ public class TranslateConfig implements JfCustomConfig {
|
||||||
|
|
||||||
public static void ensureValid() {
|
public static void ensureValid() {
|
||||||
if (translationService == null) translationService = GoogleTranslateService.NAME;
|
if (translationService == null) translationService = GoogleTranslateService.NAME;
|
||||||
if (translationService.equals(LibreTranslateService.NAME) && libreTranslateHost == null || libreTranslateHost.isBlank())
|
if (translationService.equals(LibreTranslateService.NAME) && (libreTranslateHost == null || libreTranslateHost.isBlank()))
|
||||||
translationService = GoogleTranslateService.NAME;
|
translationService = GoogleTranslateService.NAME;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user