macOS/File Browser: Support external operations #107267

Open
Ankit Meel wants to merge 10 commits from ankitm/blender:ankitm/finderreveal into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 546a1cd801 - Show all commits

View File

@ -232,7 +232,7 @@ bool perform_service_for_fileurl(NSString *service_invocation, NSString *fileurl
}
}
bool external_finder_reveal(const char *filepath)
bool external_file_finder_reveal(const char *filepath)
{
@autoreleasepool {
return perform_service_for_fileurl(@"Finder/Reveal", [NSString stringWithUTF8String:filepath]);
@ -262,10 +262,10 @@ external_operation_executor apple_external_operation_execute(const char *filepat
{
switch (operation) {
case FILE_EXTERNAL_OPERATION_OPEN: {
return external_finder_reveal;
return external_file_finder_reveal;
}
case FILE_EXTERNAL_OPERATION_FOLDER_OPEN: {
return nullptr;
return external_file_finder_reveal;
}
case FILE_EXTERNAL_OPERATION_EDIT: {
return nullptr;