mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 08:34:30 +00:00
See ChangeLog
Monotone-Parent: b577b5789ba850c92417e70690576edfd3a2793b Monotone-Revision: 931357c046b4c2c5bca20cfc7027809a3240f43a Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2009-06-09T21:25:41 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -340,6 +340,32 @@ static BOOL shouldDisplayWeekend = NO;
|
||||
return [self dateStringForDate: [self nextMonth]];
|
||||
}
|
||||
|
||||
- (void) setCurrentView: (NSString *) theView
|
||||
{
|
||||
SOGoUser *activeUser;
|
||||
NSString *module;
|
||||
NSUserDefaults *ud;
|
||||
NSMutableDictionary *moduleSettings;
|
||||
SOGoAppointmentFolders *clientObject;
|
||||
|
||||
activeUser = [context activeUser];
|
||||
clientObject = [self clientObject];
|
||||
|
||||
module = [clientObject nameInContainer];
|
||||
|
||||
ud = [activeUser userSettings];
|
||||
moduleSettings = [ud objectForKey: module];
|
||||
if (!moduleSettings)
|
||||
{
|
||||
moduleSettings = [NSMutableDictionary dictionary];
|
||||
[ud setObject: moduleSettings forKey: module];
|
||||
}
|
||||
|
||||
[moduleSettings setObject: theView
|
||||
forKey: @"View"];
|
||||
[ud synchronize];
|
||||
}
|
||||
|
||||
/* current day related */
|
||||
|
||||
- (void) setCurrentDay:(NSCalendarDate *) _day
|
||||
|
||||
Reference in New Issue
Block a user