Fixed DeepL translation when using empty text

This commit is contained in:
Thorsten Sommer 2022-09-26 19:19:46 +02:00
parent 853bde8e6a
commit 40877241fe
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -40,6 +40,9 @@ public static class DeepL
if (DEEPL_NOT_AVAILABLE)
return string.Empty;
if (string.IsNullOrWhiteSpace(text))
return string.Empty;
if (await AppSettings.GetDeepLMode() == SettingDeepLMode.DISABLED)
return string.Empty;