lok: avoid sending jsdialog messages during background save.

This creates lots of enable/disable traffic that is no longer
needed, and may trigger a fallback to non-background-save.

Change-Id: I3dd789d13b6c28540422d99128014c9c17e00d70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166157
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Michael Meeks 2024-04-16 18:11:36 +01:00 committed by Caolán McNamara
parent 9e4de8c5f4
commit e005690e9c

View file

@ -394,6 +394,9 @@ SfxOwnFramesLocker::SfxOwnFramesLocker( SfxObjectShell const * pObjectShell )
if ( !pObjectShell )
return;
if ( comphelper::LibreOfficeKit::isForkedChild() )
return; // no need to tweak UI when in the background
for ( SfxViewFrame *pFrame = SfxViewFrame::GetFirst( pObjectShell );
pFrame;
pFrame = SfxViewFrame::GetNext( *pFrame, pObjectShell )