svx/source/inc/StylesPreviewWindow.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 84094078cc556ce02c75708111d805d6f29c4879
Author:     Miklos Vajna <[email protected]>
AuthorDate: Thu May 15 15:50:23 2025 +0200
Commit:     Caolán McNamara <[email protected]>
CommitDate: Thu May 15 16:34:36 2025 +0200

    svx: lower the priority of StylesListUpdateTask to 
TaskPriority::DEFAULT_IDLE
    
    The update of styles previews is probably less important thatn the
    update of the document area, so in case this stays in the
    TaskPriority::HIGHEST -> TaskPriority::REPAINT region, that's
    potentially problematic.
    
    In practice for example a LOK client may decide to register its anyInput
    callback to stop idle jobs in case no high priority jobs are scheduled
    on the main loop, and this would delay paintTile() calls due to this
    idle.
    
    Change-Id: I6a3135caccb8abe9a8117e0d8c7bdda0df7e2780
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185368
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/svx/source/inc/StylesPreviewWindow.hxx 
b/svx/source/inc/StylesPreviewWindow.hxx
index 471b32f946cf..455462659079 100644
--- a/svx/source/inc/StylesPreviewWindow.hxx
+++ b/svx/source/inc/StylesPreviewWindow.hxx
@@ -83,7 +83,7 @@ public:
         : Idle("StylesListUpdateTask")
         , m_rStylesList(rStylesList)
     {
-        SetPriority(TaskPriority::HIGH_IDLE);
+        SetPriority(TaskPriority::DEFAULT_IDLE);
     }
 
     virtual void Invoke() override;

Reply via email to