Skip to content

Commit b1a8464

Browse files
committed
Fix openFolder not working properly on MacOS
1 parent 50c09b0 commit b1a8464

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

loader/src/platform/mac/util.mm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
}
3939

4040
bool utils::file::openFolder(std::filesystem::path const& path) {
41-
NSURL* fileURL = [NSURL fileURLWithPath:intoNS(path.string())];
42-
NSURL* folderURL = [fileURL URLByDeletingLastPathComponent];
41+
NSURL* folderURL = [NSURL fileURLWithPath:intoNS(path.string())];
4342
[[NSWorkspace sharedWorkspace] openURL:folderURL];
4443
return true;
4544
}

0 commit comments

Comments
 (0)