diff options
| author | Dustin Mierau <dustin@mierau.me> | 2025-11-10 21:00:43 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2025-11-10 21:00:43 -0800 |
| commit | ddb9c69b24a67ac140af9ff20f5c36bdef6fb51b (patch) | |
| tree | 0bb994f1ac7a608c90b33c402629b0c8b21caff4 /Hotline/macOS/TransfersView.swift | |
| parent | a4263aea6e2875fa77783685985e5c8f7991337f (diff) | |
Remove "New" suffix from our transfer clients. Further cleanup. Allow previewing certain files with HFS types (but no extensions). Cleanup preview files when window closes.
Diffstat (limited to 'Hotline/macOS/TransfersView.swift')
| -rw-r--r-- | Hotline/macOS/TransfersView.swift | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Hotline/macOS/TransfersView.swift b/Hotline/macOS/TransfersView.swift index 489a50b..bf8c8bd 100644 --- a/Hotline/macOS/TransfersView.swift +++ b/Hotline/macOS/TransfersView.swift @@ -19,9 +19,7 @@ struct TransfersView: View { ToolbarItem(placement: .primaryAction) { Button { if self.selectedTransfers.isEmpty { - if let downloadsURL = FileManager.default.urls(for: .downloadsDirectory, in: .userDomainMask).first { - NSWorkspace.shared.open(downloadsURL) - } + NSWorkspace.shared.open(URL.downloadsDirectory) } else { let fileURLs = self.selectedTransfers.compactMap(\.fileURL) |