fix: opening package paths as directory on macOS (#47077)
This commit is contained in:
parent
883f48b9b4
commit
99a3e360ec
1 changed files with 4 additions and 3 deletions
|
|
@ -318,9 +318,10 @@ void ReadDialogPathsWithBookmarks(NSOpenPanel* dialog,
|
|||
BOOL exists =
|
||||
[[NSFileManager defaultManager] fileExistsAtPath:path
|
||||
isDirectory:&is_directory];
|
||||
BOOL is_package =
|
||||
[[NSWorkspace sharedWorkspace] isFilePackageAtPath:path];
|
||||
if (!exists || !is_directory || is_package)
|
||||
BOOL is_package_as_directory =
|
||||
[[NSWorkspace sharedWorkspace] isFilePackageAtPath:path] &&
|
||||
[dialog treatsFilePackagesAsDirectories];
|
||||
if (!exists || !is_directory || !is_package_as_directory)
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue