summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-12-31 08:40:51 +0100
committerDamiano Galassi <[email protected]>2016-12-31 08:40:51 +0100
commita180930c5bc24b4ca594d8e40911dfd80970e735 (patch)
treec04967bcf5d3fd52e7039e6d1dc9f209447d132e /macosx
parentf742b1590945a70f7a1998a3016671533094e81d (diff)
MacGui: allow only .app to be selected in the "send file to" open panel.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBPreferencesController.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m
index d125782bd..16bc32170 100644
--- a/macosx/HBPreferencesController.m
+++ b/macosx/HBPreferencesController.m
@@ -188,6 +188,7 @@
[panel setAllowsMultipleSelection:NO];
[panel setCanChooseFiles:YES];
[panel setCanChooseDirectories:NO];
+ [panel setAllowedFileTypes:@[@"app"]];
NSString *sendToAppDirectory;
if ([[NSUserDefaults standardUserDefaults] stringForKey:@"LastSendToAppDirectory"])