Fixed DeepL translation when using empty text
This commit is contained in:
parent
853bde8e6a
commit
40877241fe
@ -39,6 +39,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user