summaryrefslogtreecommitdiff
path: root/redo/dialog_darwin.m
diff options
context:
space:
mode:
Diffstat (limited to 'redo/dialog_darwin.m')
-rw-r--r--redo/dialog_darwin.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/redo/dialog_darwin.m b/redo/dialog_darwin.m
index 3e662be..0557018 100644
--- a/redo/dialog_darwin.m
+++ b/redo/dialog_darwin.m
@@ -18,11 +18,9 @@ char *openFile(void)
[op setExtensionHidden:NO];
[op setAllowsOtherFileTypes:YES];
[op setTreatsFilePackagesAsDirectories:YES];
- // disable custom events
- // TODO doesn't seem to work
- dispatch_suspend(dispatch_get_main_queue());
+ beginModal();
ret = [op runModal];
- dispatch_resume(dispatch_get_main_queue());
+ endModal();
if (ret != NSFileHandlingPanelOKButton)
return NULL;
// string freed on the Go side