mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-29 22:05:42 +00:00
Set the events/tasks list collapsable
This commit is contained in:
1 parent
e687dbf155
commit
b8e2255a07
10 files changed
+255
-244
No files matched your search
@@ -343,6 +343,26 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (NSString *) collapseBtnClass
|
||||
{
|
||||
NSString *module, *state;
|
||||
NSMutableDictionary *moduleSettings;
|
||||
SOGoUser *activeUser;
|
||||
SOGoAppointmentFolders *clientObject;
|
||||
SOGoUserSettings *us;
|
||||
|
||||
activeUser = [context activeUser];
|
||||
clientObject = [self clientObject];
|
||||
|
||||
module = [clientObject nameInContainer];
|
||||
|
||||
us = [activeUser userSettings];
|
||||
moduleSettings = [us objectForKey: module];
|
||||
state = [moduleSettings objectForKey: @"ListState"];
|
||||
|
||||
return (state && [state compare: @"collapse"] == NSOrderedSame)? @"rise" : @"collapse";
|
||||
}
|
||||
|
||||
/* current day related */
|
||||
|
||||
- (void) setCurrentDay:(NSCalendarDate *) _day
|
||||
|
||||
Reference in new issue
Block a user