зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
4225c4e77d
Коммит
45fc788bb6
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче