Skip to content

Commit e052653

Browse files
committed
Fix option name for appIcon
1 parent 8f2e9a9 commit e052653

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Terminal Notifier/AppDelegate.m

+6-6
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification;
187187

188188
if (message) {
189189
NSMutableDictionary *options = [NSMutableDictionary dictionary];
190-
if (defaults[@"activate"]) options[@"bundleID"] = defaults[@"activate"];
191-
if (defaults[@"group"]) options[@"groupID"] = defaults[@"group"];
192-
if (defaults[@"execute"]) options[@"command"] = defaults[@"execute"];
193-
if (defaults[@"open"]) options[@"open"] = [defaults[@"open"] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
194-
if (defaults[@"appIcon"]) options[@"icon"] = defaults[@"appIcon"];
190+
if (defaults[@"activate"]) options[@"bundleID"] = defaults[@"activate"];
191+
if (defaults[@"group"]) options[@"groupID"] = defaults[@"group"];
192+
if (defaults[@"execute"]) options[@"command"] = defaults[@"execute"];
193+
if (defaults[@"open"]) options[@"open"] = [defaults[@"open"] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
194+
if (defaults[@"appIcon"]) options[@"appIcon"] = defaults[@"appIcon"];
195195
if (defaults[@"contentImage"]) options[@"contentImage"] = defaults[@"contentImage"];
196196

197197
[self deliverNotificationWithTitle:defaults[@"title"] ?: @"Terminal"
@@ -226,7 +226,7 @@ - (void)deliverNotificationWithTitle:(NSString *)title
226226
userNotification.subtitle = subtitle;
227227
userNotification.informativeText = message;
228228
userNotification.userInfo = options;
229-
229+
230230
if(isMavericks()){
231231
// Mavericks options
232232
if(options[@"appIcon"]){

0 commit comments

Comments
 (0)