From 87e979fb48da4a46e64544cea3e7b7d5fc32caa1 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Tue, 14 May 2024 13:35:26 -0700 Subject: Newsgroup posting now works. Added reload button to news. More work on server and user icons. --- Hotline/macOS/FilesView.swift | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Hotline/macOS/FilesView.swift') diff --git a/Hotline/macOS/FilesView.swift b/Hotline/macOS/FilesView.swift index e3f5118..a225549 100644 --- a/Hotline/macOS/FilesView.swift +++ b/Hotline/macOS/FilesView.swift @@ -192,18 +192,18 @@ struct FilesView: View { } } .toolbar { - ToolbarItem(placement: .primaryAction) { - Button { - } label: { - Label("Delete", systemImage: "trash") - } - .help("Delete") - .disabled(true) - } +// ToolbarItem(placement: .primaryAction) { +// Button { +// } label: { +// Label("Delete", systemImage: "trash") +// } +// .help("Delete") +// .disabled(true) +// } ToolbarItem(placement: .primaryAction) { Button { - if let s = selection, !s.isFolder { + if let s = selection, s.isPreviewable { model.previewFile(s.name, path: s.path) { info in if let info = info { openPreviewWindow(info) -- cgit