Reverse logic on personal toolbar hiding state so that if no pref is

found, that corresponds to showing the personal toolbar, which is what
we want as the default.
This commit is contained in:
pinkerton%netscape.com 2002-07-01 18:36:29 +00:00
Родитель 4225c4e77d
Коммит 45fc788bb6
8 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -1086,7 +1086,7 @@ static NSString *SearchToolbarItemIdentifier = @"Search Toolbar Item";
- (BOOL)shouldShowBookmarkToolbar
{
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
if ([defaults integerForKey:@"Personal TB Is Shown"] == 0)
if ([defaults integerForKey:@"Hide Personal Toolbar"] == 1)
return NO;
return YES;

Просмотреть файл

@ -541,7 +541,7 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
// save prefs here
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject: [NSNumber numberWithInt: ((showToolbar) ? 1 : 0)] forKey: @"Personal TB Is Shown"];
[defaults setObject: [NSNumber numberWithInt: ((showToolbar) ? 0 : 1)] forKey: @"Hide Personal Toolbar"];
}
+ (NSImage*)createImageForDragging:(NSImage*)aIcon title:(NSString*)aTitle

Просмотреть файл

@ -541,7 +541,7 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
// save prefs here
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject: [NSNumber numberWithInt: ((showToolbar) ? 1 : 0)] forKey: @"Personal TB Is Shown"];
[defaults setObject: [NSNumber numberWithInt: ((showToolbar) ? 0 : 1)] forKey: @"Hide Personal Toolbar"];
}
+ (NSImage*)createImageForDragging:(NSImage*)aIcon title:(NSString*)aTitle

Просмотреть файл

@ -1086,7 +1086,7 @@ static NSString *SearchToolbarItemIdentifier = @"Search Toolbar Item";
- (BOOL)shouldShowBookmarkToolbar
{
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
if ([defaults integerForKey:@"Personal TB Is Shown"] == 0)
if ([defaults integerForKey:@"Hide Personal Toolbar"] == 1)
return NO;
return YES;

Просмотреть файл

@ -1086,7 +1086,7 @@ static NSString *SearchToolbarItemIdentifier = @"Search Toolbar Item";
- (BOOL)shouldShowBookmarkToolbar
{
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
if ([defaults integerForKey:@"Personal TB Is Shown"] == 0)
if ([defaults integerForKey:@"Hide Personal Toolbar"] == 1)
return NO;
return YES;

Просмотреть файл

@ -541,7 +541,7 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
// save prefs here
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject: [NSNumber numberWithInt: ((showToolbar) ? 1 : 0)] forKey: @"Personal TB Is Shown"];
[defaults setObject: [NSNumber numberWithInt: ((showToolbar) ? 0 : 1)] forKey: @"Hide Personal Toolbar"];
}
+ (NSImage*)createImageForDragging:(NSImage*)aIcon title:(NSString*)aTitle

Просмотреть файл

@ -541,7 +541,7 @@ static const char* ioServiceContractID = "@mozilla.org/network/io-service;1";
// save prefs here
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject: [NSNumber numberWithInt: ((showToolbar) ? 1 : 0)] forKey: @"Personal TB Is Shown"];
[defaults setObject: [NSNumber numberWithInt: ((showToolbar) ? 0 : 1)] forKey: @"Hide Personal Toolbar"];
}
+ (NSImage*)createImageForDragging:(NSImage*)aIcon title:(NSString*)aTitle

Просмотреть файл

@ -1086,7 +1086,7 @@ static NSString *SearchToolbarItemIdentifier = @"Search Toolbar Item";
- (BOOL)shouldShowBookmarkToolbar
{
NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
if ([defaults integerForKey:@"Personal TB Is Shown"] == 0)
if ([defaults integerForKey:@"Hide Personal Toolbar"] == 1)
return NO;
return YES;