sfx2/source/notebookbar/SfxNotebookBar.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 0cda4c31c6c7881ea7b5089b04ad5147b28117af Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Mon Jul 17 17:14:21 2023 +0900 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Mon Jul 17 11:43:06 2023 +0200 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.me...@collabora.com> Tested-by: Michael Meeks <michael.me...@collabora.com> 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++)