mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-05 16:35:10 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user