mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 04:39:29 +00:00
Adding a setting to enable launching URLs on double-click
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user