Skip to content

Commit

Permalink
fix(preferences(js)): initialize Forward defaults
Browse files Browse the repository at this point in the history
Make sure 'Forward' is defined prior to visit the Preferences module.
  • Loading branch information
cgx committed Jun 27, 2020
1 parent 11bbdee commit f60a30c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UI/PreferencesUI/UIxJSONPreferences.m
Expand Up @@ -365,6 +365,11 @@ - (NSString *) jsonDefaults
[defaults setMailLabelsColors: v];
}

if ([domainDefaults forwardEnabled] && ![defaults forwardOptions])
{
[defaults setForwardOptions: [NSDictionary new]];
}

if ([[defaults source] dirty])
[defaults synchronize];

Expand Down

0 comments on commit f60a30c

Please sign in to comment.