dont keep writing to config when persona is set to 'no'

Change-Id: I87233fc2a8b1099a7468b28add1b87e864908f4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133169
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2022-04-19 11:54:53 +02:00
parent 7418fc8802
commit e0c424ba72

View File

@@ -2286,6 +2286,8 @@ static void setupPersonaHeaderFooter( WhichPersona eWhich, OUString& rHeaderFoot
// read from the configuration
OUString aPersona( officecfg::Office::Common::Misc::Persona::get() );
OUString aPersonaSettings( officecfg::Office::Common::Misc::PersonaSettings::get() );
if (aPersona == "no")
return;
// have the settings changed? marks if header /footer prepared before
//should maybe extended to a flag that marks if header /footer /both are loaded