diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-14 16:24:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-15 07:30:30 +0000 |
commit | 69b0fa8a6267a1fa77e77405000f42e8aeba5fa0 (patch) | |
tree | 2de817fe1e13751aea9ffd55ffff28e8fa7cf9d5 /desktop | |
parent | c95bfc87ce4e229a93cb69325d815404a9883f20 (diff) |
Use officecfg instead of SvxDeeplOptions
Change-Id: I977d9be45fa17b960cccb0915c5f2762bf11288f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148885
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 1a29cdd4ce05..bdab0c035563 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -143,7 +143,6 @@ #include <tools/json_writer.hxx> #include <svtools/ctrltool.hxx> #include <svtools/langtab.hxx> -#include <svtools/deeplcfg.hxx> #include <vcl/fontcharmap.hxx> #ifdef IOS #include <vcl/sysdata.hxx> @@ -7351,9 +7350,10 @@ void setDeeplConfig() OUString aAuthKey = OStringToOUString(pAuthKeyString, RTL_TEXTENCODING_UTF8); try { - SvxDeeplOptions& rDeeplOptions = SvxDeeplOptions::Get(); - rDeeplOptions.setAPIUrl(aAPIUrl); - rDeeplOptions.setAuthKey(aAuthKey); + std::shared_ptr<comphelper::ConfigurationChanges> batch(comphelper::ConfigurationChanges::create()); + officecfg::Office::Linguistic::Translation::Deepl::ApiURL::set(aAPIUrl, batch); + officecfg::Office::Linguistic::Translation::Deepl::AuthKey::set(aAuthKey, batch); + batch->commit(); } catch(uno::Exception const& rException) { |