Skip to content

Commit

Permalink
Fix regression when saving mail folders state
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Nov 16, 2015
1 parent 2a90102 commit a9984d9
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions UI/MailerUI/UIxMailMainFrame.m
Expand Up @@ -403,16 +403,18 @@ - (WOResponse *) saveDragHandleStateAction
- (WOResponse *) saveFoldersStateAction
{
WORequest *request;
NSString *expandedFolders;
NSArray *expandedFolders;
NSString *json;

[self _setupContext];
request = [context request];
expandedFolders = [request formValueForKey: @"expandedFolders"];

[moduleSettings setObject: [expandedFolders componentsSeparatedByString: @","]
forKey: @"ExpandedFolders"];

[us synchronize];
json = [request formValueForKey: @"expandedFolders"];
if ([json length])
{
expandedFolders = [json objectFromJSONString];
[moduleSettings setObject: expandedFolders forKey: @"ExpandedFolders"];
[us synchronize];
}

return [self responseWithStatus: 204];
}
Expand Down

0 comments on commit a9984d9

Please sign in to comment.