fix(preferences(js)): initialize Forward defaults

Make sure 'Forward' is defined prior to visit the Preferences module.
pull/275/head
Francis Lachapelle 2020-06-27 11:31:08 -04:00
parent 11bbdee143
commit f60a30c520
1 changed files with 5 additions and 0 deletions

View File

@ -365,6 +365,11 @@ static SoProduct *preferencesProduct = nil;
[defaults setMailLabelsColors: v];
}
if ([domainDefaults forwardEnabled] && ![defaults forwardOptions])
{
[defaults setForwardOptions: [NSDictionary new]];
}
if ([[defaults source] dirty])
[defaults synchronize];