mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-09-04 05:05:05 +00:00
fix(UI): use legitimate sorting value
This commit is contained in:
@@ -254,6 +254,7 @@
|
||||
{
|
||||
WORequest *request;
|
||||
NSDictionary *params;
|
||||
NSArray *listValues;
|
||||
NSString *selectedList;
|
||||
|
||||
[self _setupContext];
|
||||
@@ -261,6 +262,14 @@
|
||||
params = [[request contentAsString] objectFromJSONString];
|
||||
|
||||
selectedList = [params objectForKey: @"list"];
|
||||
|
||||
//Check value
|
||||
listValues = [NSArray arrayWithObjects: @"eventsListView", @"tasksListView", nil];
|
||||
if([selectedList length] && ![listValues containsObject:selectedList])
|
||||
{
|
||||
selectedList = @"eventsListView";
|
||||
}
|
||||
|
||||
[moduleSettings setObject: selectedList
|
||||
forKey: @"SelectedList"];
|
||||
[us synchronize];
|
||||
|
||||
Reference in New Issue
Block a user