See ChangeLog

Monotone-Parent: 3e3f539c1798ad054238bb1eb3099675124b888b
Monotone-Revision: 57dd1ad4053d9e7949e68a06c4f52bd1ec44d9d1

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-05-19T23:31:51
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-05-19 23:31:51 +00:00
parent d7bcd8d2da
commit 13cc138afc
3 changed files with 40 additions and 5 deletions
+14 -2
View File
@@ -46,6 +46,7 @@
static BOOL defaultsRead = NO;
static BOOL shouldDisplayPasswordChange = NO;
static BOOL shouldDisplayAdditionalPreferences = NO;
static BOOL defaultShowSubscribedFoldersOnly = NO;
@implementation UIxPreferences
@@ -60,6 +61,8 @@ static BOOL shouldDisplayAdditionalPreferences = NO;
= [ud boolForKey: @"SOGoUIxUserCanChangePassword"];
shouldDisplayAdditionalPreferences
= [ud boolForKey: @"SOGoUIxAdditionalPreferences"];
defaultShowSubscribedFoldersOnly
= [ud boolForKey: @"SOGoMailShowSubscribedFoldersOnly"];
defaultsRead = YES;
}
}
@@ -452,12 +455,21 @@ static BOOL shouldDisplayAdditionalPreferences = NO;
if (showSubscribedFoldersOnly)
[userDefaults setBool: YES forKey: @"showSubscribedFoldersOnly"];
else
[userDefaults removeObjectForKey: @"showSubscribedFoldersOnly"];
[userDefaults setBool: NO forKey: @"showSubscribedFoldersOnly"];
}
- (BOOL) showSubscribedFoldersOnly
{
return [userDefaults boolForKey: @"showSubscribedFoldersOnly"];
NSString *showSubscribedFoldersOnly;
BOOL r;
showSubscribedFoldersOnly = [userDefaults stringForKey: @"showSubscribedFoldersOnly"];
if (showSubscribedFoldersOnly)
r = [showSubscribedFoldersOnly boolValue];
else
r = defaultShowSubscribedFoldersOnly;
return r;
}
- (NSArray *) messageCheckList