Fixed DeepL translation when using empty text
This commit is contained in:
1 file changed
+3
@@ -39,6 +39,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;
|
||||
|
||||
Reference in new issue
Block a user