diff options
| author | Dustin Mierau <dustin@mierau.me> | 2025-11-12 18:55:25 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2025-11-12 18:55:25 -0800 |
| commit | 5eff79cc4891076d85223dcfd96c7cb8894c80f2 (patch) | |
| tree | 9a0197cf30d3300cb2fbc024da26ddbc82df43bd /Hotline/macOS/TransfersView.swift | |
| parent | 5a3d06c527cf03d68149449965fade0dd5ea0ed2 (diff) | |
Get Accounts out of the sidebar, redesign Account management.
Diffstat (limited to 'Hotline/macOS/TransfersView.swift')
| -rw-r--r-- | Hotline/macOS/TransfersView.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Hotline/macOS/TransfersView.swift b/Hotline/macOS/TransfersView.swift index 9bef02c..1fefe5a 100644 --- a/Hotline/macOS/TransfersView.swift +++ b/Hotline/macOS/TransfersView.swift @@ -163,7 +163,7 @@ struct TransfersView: View { let result: [(name: String, url: URL)] = intersection.compactMap { url in let appName = FileManager.default .displayName(atPath: url.path) - .replacingOccurrences(of: ".app", with: "") + .replacing(".app", with: "") return (name: appName, url: url) }.sorted { $0.name < $1.name } @@ -178,7 +178,7 @@ struct TransfersView: View { if fileURLs.count == 1, let url = NSWorkspace.shared.urlForApplication(toOpen: fileURLs[0]) { let name = FileManager.default .displayName(atPath: url.path) - .replacingOccurrences(of: ".app", with: "") + .replacing(".app", with: "") return (name, url) } @@ -213,7 +213,7 @@ struct TransfersView: View { defaultCounts[bestByMajority, default: 0] > 0 { let name = FileManager.default .displayName(atPath: bestByMajority.path) - .replacingOccurrences(of: ".app", with: "") + .replacing(".app", with: "") return (name, bestByMajority) } |