From 5b4d615792a951979ff79506657e8407d2a48016 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Thu, 23 Oct 2025 11:24:06 -0700 Subject: 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. --- Hotline/macOS/FilesView.swift | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Hotline/macOS/FilesView.swift') 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 { -- cgit