Permalink
Browse files

fixed badge labels on Lion and switched 127.0.0.1 -> 0.0.0.0, as sugg…

…ested by Sumukh
  • Loading branch information...
1 parent f64e6ba commit 749cf5da1619df682647d5177cf4c8bb81025b8d @cstigler cstigler committed Jun 9, 2012
View
@@ -89,7 +89,7 @@ - (void)addSelfControlBlockFooter {
}
- (void)addRuleBlockingDomain:(NSString*)domainName {
- [newFileContents appendString: [NSString stringWithFormat: @"127.0.0.1\t%@\n", domainName]];
+ [newFileContents appendString: [NSString stringWithFormat: @"0.0.0.0\t%@\n", domainName]];
}
- (BOOL)containsSelfControlBlock {
View
@@ -139,7 +139,7 @@ - (void)blockEnded {
[timerUpdater_ invalidate];
timerUpdater_ = nil;
- [timerLabel_ setStringValue: @"Block not active"];
+ [timerLabel_ setStringValue: NSLocalizedString(@"Block not active", @"block not active string")];
[timerLabel_ setFont: [[NSFontManager sharedFontManager]
convertFont: [timerLabel_ font]
toSize: 37]
@@ -158,7 +158,7 @@ - (void)updateTimerDisplay:(NSTimer*)timer {
if(numSeconds < 0) {
if(isLeopard)
- [[NSApp dockTile] setBadgeLabel: @""];
+ [[NSApp dockTile] setBadgeLabel: nil];
// This increments the strike counter. After four strikes of the timer being
// at or less than 0 seconds, SelfControl will assume something's wrong and run
@@ -203,7 +203,7 @@ - (void)updateTimerDisplay:(NSTimer*)timer {
} else if(isLeopard) {
// If we're on Leopard but aren't using badging, set the badge string to be
// empty to remove any badge if there is one.
- [[NSApp dockTile] setBadgeLabel: @""];
+ [[NSApp dockTile] setBadgeLabel: nil];
}
}

0 comments on commit 749cf5d

Please sign in to comment.