aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2025-10-23 11:24:06 -0700
committerDustin Mierau <dustin@mierau.me>2025-10-23 11:24:06 -0700
commit5b4d615792a951979ff79506657e8407d2a48016 (patch)
treeaf5fe28ad44c1a4c9b9f66c9036301de9464acb0 /Hotline/macOS
parent485e4d981b6cd19a1e00ebf244ed1dd538fba284 (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.swift7
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 {