Skip to content

Commit

Permalink
Issue #682, continued…
Browse files Browse the repository at this point in the history
  • Loading branch information
barijaona committed Jul 10, 2016
1 parent f0c9230 commit 20dc0a7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Preferences/GeneralPreferencesViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,15 @@ -(void)refreshLinkHandler
}

NSString * regAppName = [[NSFileManager defaultManager] displayNameAtPath:registeredAppURL];
// Maintain a table to map from the short name to the file URL for when
// the user changes selection and we later need the file URL to register
// the new selection.
if (regAppName != nil) {
[linksHandler addItemWithTitle:regAppName image:[[NSWorkspace sharedWorkspace] iconForFile:registeredAppURL]];
[linksHandler addSeparator];
[appToPathMap setValue:registeredAppURL forKey:regAppName];
}

// Maintain a table to map from the short name to the file URL for when
// the user changes selection and we later need the file URL to register
// the new selection.
[appToPathMap setValue:registeredAppURL forKey:regAppName];


// Next, add the list of all registered link handlers under the /Applications folder
// except for the registered application.
CFArrayRef cfArrayOfApps = LSCopyApplicationURLsForURL((__bridge CFURLRef)testURL, kLSRolesAll);
Expand Down

0 comments on commit 20dc0a7

Please sign in to comment.