summaryrefslogtreecommitdiffstats
path: root/wizards/source/tools/Misc.xba
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2021-12-07 15:47:37 +0100
committerLuboš Luňák <l.lunak@collabora.com>2021-12-08 19:18:14 +0100
commit34a285a05f7f4a315661c1267515effb8c0c812a (patch)
treefc65cdc1c1759ca17da47c6cda6aeb54226e09f7 /wizards/source/tools/Misc.xba
parenttdf#123139 sc oox: CellXf should default to applyAlignment (diff)
downloadcore-34a285a05f7f4a315661c1267515effb8c0c812a.tar.gz
core-34a285a05f7f4a315661c1267515effb8c0c812a.zip
do not unnecessarily lock XLayoutManager for menubar changes
The XLayoutManager documentation says that lock() prohibits layout updates until unlock() is called, so it's not any kind of mutex or anything, it just allows grouping updates. Which means it's useless to put around a single call to change menubar visibility. To make things worse, unlock() will always trigger a layout, so even if nothing changes, it still does an unnecessary layout update. And since this gets called from SfxLokHelper::setView(), it may get called often and it's rather costly. Change-Id: I3e3e37b6763b15d454e76b4bef0b22f84cf479d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126483 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'wizards/source/tools/Misc.xba')
0 files changed, 0 insertions, 0 deletions