diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2022-04-07 11:44:48 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-04-07 14:14:37 +0200 |
commit | 751c6e25a3998845325c9b107163fc23a85b3367 (patch) | |
tree | 522510914f8abe0deb15a52e99944b0f0119d1c6 /cui/source | |
parent | 244cf83b9e1b23b3b75a84954c83f6fbf915671e (diff) |
Make "Calc:" in About dialog's Misc show "default" by default
... i.e., when neither CL, nor threaded, nor Jumbo are enabled.
Change-Id: I55d4a5e2e9b9a63c8ea2735dbd410603644d0389
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132659
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/about.cxx | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/cui/source/dialogs/about.cxx b/cui/source/dialogs/about.cxx index dd5df31db6ae..09717ddece4f 100644 --- a/cui/source/dialogs/about.cxx +++ b/cui/source/dialogs/about.cxx @@ -216,12 +216,12 @@ OUString AboutDialog::GetMiscString() { sMisc = EXTRA_BUILDID "\n"; } - OUString aCalcMode = "Calc: "; // Calc calculation mode + OUString aCalcMode; // Calc calculation mode #if HAVE_FEATURE_OPENCL bool bOpenCL = openclwrapper::GPUEnv::isOpenCLEnabled(); if (bOpenCL) - aCalcMode += "CL"; + aCalcMode += " CL"; #else const bool bOpenCL = false; #endif @@ -232,18 +232,17 @@ OUString AboutDialog::GetMiscString() { UseThreadedCalculationForFormulaGroups::get(); if (!bThreadingProhibited && !bOpenCL && bThreadedCalc) { - if (!aCalcMode.endsWith(" ")) - aCalcMode += " "; - aCalcMode += "threaded"; + aCalcMode += " threaded"; } if (officecfg::Office::Calc::Defaults::Sheet::JumboSheets::get()) { - if (!aCalcMode.endsWith(" ")) - aCalcMode += " "; - aCalcMode += "Jumbo"; + aCalcMode += " Jumbo"; } - sMisc += aCalcMode; + + if (aCalcMode.isEmpty()) + aCalcMode = " default"; + sMisc += "Calc:" + aCalcMode; return sMisc; } |