Fixed DeepL translation when using empty text

This commit is contained in:
tsommer committed 2022-09-26 19:19:46 +02:00
1 parent 853bde8e6a
commit 40877241fe
1 file changed
+3
+3
View File
@@ -40,6 +40,9 @@ public static class DeepL
if (DEEPL_NOT_AVAILABLE) if (DEEPL_NOT_AVAILABLE)
return string.Empty; return string.Empty;
if (string.IsNullOrWhiteSpace(text))
return string.Empty;
if (await AppSettings.GetDeepLMode() == SettingDeepLMode.DISABLED) if (await AppSettings.GetDeepLMode() == SettingDeepLMode.DISABLED)
return string.Empty; return string.Empty;