Skip to content

Commit

Permalink
Expose default value of SOGoMailAutoSave
Browse files Browse the repository at this point in the history
Fixes #4053
  • Loading branch information
cgx committed Mar 1, 2017
1 parent 4d88eab commit 8322d31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS
Expand Up @@ -14,6 +14,7 @@ Bug fixes
- [web] hide fab button when printing (#4038)
- [web] SOGoCalendarWeekdays must now be defined before saving preferences
- [web] fixed CAS session timeout handling during XHR requests (#1456)
- [web] exposed default value of SOGoMailAutoSave (#4053)

3.2.7 (2017-02-14)
------------------
Expand Down
3 changes: 3 additions & 0 deletions UI/PreferencesUI/UIxJSONPreferences.m
Expand Up @@ -283,6 +283,9 @@ - (WOResponse *) jsonDefaultsAction
if (![[defaults source] objectForKey: @"SOGoMailDisplayRemoteInlineImages"])
[[defaults source] setObject: [defaults mailDisplayRemoteInlineImages] forKey: @"SOGoMailDisplayRemoteInlineImages"];

if (![[defaults source] objectForKey: @"SOGoMailAutoSave"])
[[defaults source] setObject: [defaults mailAutoSave] forKey: @"SOGoMailAutoSave"];

// Populate default mail labels, based on the user's preferred language
if (![[defaults source] objectForKey: @"SOGoMailLabelsColors"])
{
Expand Down

0 comments on commit 8322d31

Please sign in to comment.