Skip to content
Snippets Groups Projects
Commit e719c085 authored by George Nachman's avatar George Nachman
Browse files

Fix a bug where the first scheme in the list of URL schemes was not selectable...

Fix a bug where the first scheme in the list of URL schemes was not selectable because NSMenu is stupid. Issue 5897 (in a comment)
parent abf78064
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -239,6 +239,7 @@ static NSString *const iTermProfilePreferencesUpdateSessionName = @"iTermProfile
- (void)populateBookmarkUrlSchemesFromProfile:(Profile*)profile {
if ([[[_urlSchemes menu] itemArray] count] == 0) {
NSArray* urlArray = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleURLTypes"];
[_urlSchemes addItemWithTitle:@"Select URL Schemes…"];
for (NSDictionary *dict in urlArray) {
NSString *scheme = dict[@"CFBundleURLSchemes"][0];
[_urlSchemes addItemWithTitle:scheme];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment