Skip to content

Commit b1f2b8e

Browse files
committed
Fix Icon For Paths With Spaces, Spelling Error
1 parent 0dffb23 commit b1f2b8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CodeEdit/Features/Welcome/Model/RecentProjectsStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class RecentProjectsStore {
2121
private static let projectsdDefaultsKey = "recentProjectPaths"
2222
static let didUpdateNotification = Notification.Name("RecentProjectsStore.didUpdate")
2323

24-
/// The storage location for recent projeects
24+
/// The storage location for recent projects
2525
let defaults: UserDefaults
2626

2727
/// Create a new store with a `UserDefaults` storage location.

CodeEdit/Features/WindowCommands/Utils/RecentProjectsMenu.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class RecentProjectsMenu: NSObject {
3535

3636
private func addFileURLs(to menu: NSMenu, fileURLs: ArraySlice<URL>) {
3737
for url in fileURLs {
38-
let icon = NSWorkspace.shared.icon(forFile: url.path())
38+
let icon = NSWorkspace.shared.icon(forFile: url.path(percentEncoded: false))
3939
icon.size = NSSize(width: 16, height: 16)
4040
let alternateTitle = alternateTitle(for: url)
4141

0 commit comments

Comments
 (0)