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

Accept services that want us to send a plain text selection as input.

parent a13244a2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5585,7 +5585,11 @@ static double EuclideanDistance(NSPoint p1, NSPoint p2) {
{
NSSet *acceptedReturnTypes = [NSSet setWithArray:@[ (NSString *)kUTTypeUTF8PlainText,
NSStringPboardType ]];
if (sendType == nil &&
NSSet *acceptedSendTypes = nil;
if (self._haveShortSelection) {
acceptedSendTypes = acceptedReturnTypes;
}
if ((sendType == nil || [acceptedSendTypes containsObject:sendType]) &&
(returnType == nil || [acceptedReturnTypes containsObject:returnType])) {
return self;
} else {
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