DeepL: Only enable Translate menu if it's set up
commitbfdaa3f59bcf87f341138202c047dd4b28acb28a
authorAron Budea <aron.budea@collabora.com>
Sun, 27 Nov 2022 21:48:51 +0000 (27 22:48 +0100)
committerMiklos Vajna <vmiklos@collabora.com>
Mon, 28 Nov 2022 13:31:35 +0000 (28 14:31 +0100)
tree34fe758cc24f1dafa99c11ce5eb8ae88dd04a829
parentf97556dc0bdf9b4593fab78ef205972bf89b4af3
DeepL: Only enable Translate menu if it's set up

Both the API URL and Authentication key have to be set.

Plus:
- align widgets in DeepL settings dialog,
- rename .ui file to conform to other dialog names in Options.

Change-Id: I8cfeaa64b05747b0113a6075b6fd241ca9ab3a70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143359
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
cui/UIConfig_cui.mk
cui/source/options/optdeepl.cxx
cui/uiconfig/ui/optdeeplpage.ui [moved from cui/uiconfig/ui/deepltabpage.ui with 92% similarity]
sw/source/uibase/shells/textsh1.cxx