From 0ce12e58bbfa7bf3b550fdba1fee4250448f9ba2 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 5 Sep 2018 22:07:45 +0200 Subject: Terminate app when email address is copied Once the email is copied, the application has exhausted its usefulness and should just quit as if it were a dialog. --- CopyMailto/AppDelegate.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CopyMailto') diff --git a/CopyMailto/AppDelegate.m b/CopyMailto/AppDelegate.m index 5eb04c5..b47ce00 100644 --- a/CopyMailto/AppDelegate.m +++ b/CopyMailto/AppDelegate.m @@ -40,6 +40,8 @@ const NSUInteger MAILTO_INDEX = 7; [pasteboard writeObjects: [NSArray arrayWithObject: [_email_address stringValue]]]; + + [NSApp terminate:self]; } @end -- cgit v1.2.3