WASM: conditionalize one more Deepl usage in sw
Change-Id: I7aa6bb5a2bc1f64ed17911d777921fbc8be92ddc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143484 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Jenkins
This commit is contained in:
@@ -2000,11 +2000,13 @@ void SwTextShell::GetState( SfxItemSet &rSet )
|
||||
|
||||
case SID_FM_TRANSLATE:
|
||||
{
|
||||
#if !ENABLE_WASM_STRIP_EXTRA
|
||||
const SvxDeeplOptions& rDeeplOptions = SvxDeeplOptions::Get();
|
||||
if (rDeeplOptions.getAPIUrl().isEmpty() || rDeeplOptions.getAuthKey().isEmpty())
|
||||
{
|
||||
rSet.DisableItem(nWhich);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user