diff options
| author | Dustin Mierau <dustin@mierau.me> | 2025-10-23 11:24:06 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2025-10-23 11:24:06 -0700 |
| commit | 5b4d615792a951979ff79506657e8407d2a48016 (patch) | |
| tree | af5fe28ad44c1a4c9b9f66c9036301de9464acb0 /Hotline/macOS | |
| parent | 485e4d981b6cd19a1e00ebf244ed1dd538fba284 (diff) | |
Improve file search to move down the tree once current depth has been searched with exception now for hot spots where we burst into folders that contain matches.
Diffstat (limited to 'Hotline/macOS')
| -rw-r--r-- | Hotline/macOS/FilesView.swift | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Hotline/macOS/FilesView.swift b/Hotline/macOS/FilesView.swift index 4498dc9..5d06b02 100644 --- a/Hotline/macOS/FilesView.swift +++ b/Hotline/macOS/FilesView.swift @@ -263,7 +263,7 @@ struct FilesView: View { if path.isEmpty { return "/" } - return "/" + path.joined(separator: "/") + "/" + return path.joined(separator: "/") } private func openPreviewWindow(_ previewInfo: PreviewFileInfo) { @@ -464,7 +464,10 @@ struct FilesView: View { Label("Upload", systemImage: "arrow.up") } .help("Upload") - .disabled(model.access?.contains(.canUploadFiles) != true) + .disabled( + model.access?.contains(.canUploadFiles) != true || + (model.fileSearchStatus.isActive && !(selection?.isFolder ?? false)) + ) Button { if let selectedFile = selection { |