Adding a setting to enable launching URLs on double-click

This commit is contained in:
Kurt
2013-07-29 21:31:29 -04:00
parent e33a9fdc93
commit ad07c0de6c
9 changed files with 357 additions and 89 deletions

View File

@@ -17,6 +17,7 @@
#import "MPContextMenuHelper.h"
#import "MPActionHelper.h"
#import "MPSettingsHelper.h"
#import "MPConstants.h"
#import "MPEntryTableDataSource.h"
#import "MPStringLengthValueTransformer.h"
@@ -633,7 +634,10 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername";
[self copyUsername:nil];
}
else if([identifier isEqualToString:MPEntryTableURLColumnIdentifier]) {
[self copyURL:nil];
if([[NSUserDefaults standardUserDefaults] boolForKey:kMPSettingsKeyDoubleClickURLToLaunch])
[self openURL:nil];
else
[self copyURL:nil];
}
}