Update styles previews in Idle
commit522bde9470bbb321813fa5f1ca8e3c2ebb1bb5cc
authorSzymon Kłos <szymon.klos@collabora.com>
Tue, 14 Dec 2021 17:21:39 +0000 (14 18:21 +0100)
committerSzymon Kłos <szymon.klos@collabora.com>
Mon, 21 Feb 2022 04:31:53 +0000 (21 05:31 +0100)
treec9e766fa594245b6b01b6c7e3af4feba693c8c52
parent3ab1a849ba54410d14e2c988ae010f2c31dd4dce
Update styles previews in Idle

This helps with performance when we do series of actions
updating styles. In that case we will only request update.
When we will reach idle state we will do it only one time.
What removes unnecessary updates in the meantime.

Change-Id: I9fc59992833a6cf98c42571c1189b3c5d49ba5a0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126840
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130232
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
svx/source/inc/StylesPreviewWindow.hxx
svx/source/tbxctrls/StylesPreviewWindow.cxx