Skip to content

Commit

Permalink
No longer have a default app to activate when clicking.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Jul 28, 2012
1 parent 9c51506 commit 38e547b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Terminal Notifier/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,10 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification;
}

NSMutableDictionary *options = [NSMutableDictionary dictionary];
options[@"bundleID"] = defaults[@"activate"] ?: @"com.apple.Terminal";

if (defaults[@"group"]) options[@"groupID"] = defaults[@"group"];
if (defaults[@"execute"]) options[@"command"] = defaults[@"execute"];
if (defaults[@"open"]) options[@"open"] = defaults[@"open"];
if (defaults[@"activate"]) options[@"bundleID"] = defaults[@"activate"];
if (defaults[@"group"]) options[@"groupID"] = defaults[@"group"];
if (defaults[@"execute"]) options[@"command"] = defaults[@"execute"];
if (defaults[@"open"]) options[@"open"] = defaults[@"open"];

[self deliverNotificationWithTitle:defaults[@"title"] ?: @"Terminal"
message:message
Expand Down

0 comments on commit 38e547b

Please sign in to comment.