From 6a4e2994d17220eb43015162522deec1efdd429b Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 17 Oct 2009 00:35:09 +0000 Subject: Replace the use of hard coded preference keys with constants to prevent issues such as the one fixed in revision 1419. All future preference usage should be done so using these constants. --- Source/SPGrowlController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Source/SPGrowlController.m') diff --git a/Source/SPGrowlController.m b/Source/SPGrowlController.m index b939d878..f96602cd 100644 --- a/Source/SPGrowlController.m +++ b/Source/SPGrowlController.m @@ -24,6 +24,8 @@ // More info at #import "SPGrowlController.h" +#import "SPConstants.h" + #include static SPGrowlController *sharedGrowlController = nil; @@ -141,7 +143,7 @@ static SPGrowlController *sharedGrowlController = nil; } // Post notification only if preference is set and visibility has been confirmed - if (postNotification && [[NSUserDefaults standardUserDefaults] boolForKey:@"GrowlEnabled"]) { + if (postNotification && [[NSUserDefaults standardUserDefaults] boolForKey:SPGrowlEnabled]) { [GrowlApplicationBridge notifyWithTitle:title description:description notificationName:name -- cgit v1.2.3