diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2023-07-17 17:14:21 +0900 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2023-07-17 11:43:06 +0200 |
commit | 0cda4c31c6c7881ea7b5089b04ad5147b28117af (patch) | |
tree | 3c28416814d20838d9018d98ef4d3bfaad19a733 /sfx2 | |
parent | 25feffa49576564d7fe70fb20597855d33ac8492 (diff) |
disable add-ons for NotebookBar in LOKit - perf. issues
Searching for add-ons to use in NotebookBar causes perf. issues,
so disable them for now. This was discovered during a editing
session and the flame-graph showed up the NotebookbarAddonValues
method. See COOL GitHub ticket [1] for more details.
[1] https://github.com/CollaboraOnline/online/issues/6896
Change-Id: I4b2ced2be966de1cd1282f801a4410bc1625f0f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154513
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/notebookbar/SfxNotebookBar.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sfx2/source/notebookbar/SfxNotebookBar.cxx b/sfx2/source/notebookbar/SfxNotebookBar.cxx index e8ea6c684794..30b4548ee44e 100644 --- a/sfx2/source/notebookbar/SfxNotebookBar.cxx +++ b/sfx2/source/notebookbar/SfxNotebookBar.cxx @@ -49,6 +49,9 @@ static void NotebookbarAddonValues( std::vector<css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>>>& aExtensionValues) { + if (comphelper::LibreOfficeKit::isActive()) + return; + framework::AddonsOptions aAddonsItems; for (int nIdx = 0; nIdx < aAddonsItems.GetAddonsNotebookBarCount(); nIdx++) |