diff options
Diffstat (limited to 'Hotline/macOS/FilesView.swift')
| -rw-r--r-- | Hotline/macOS/FilesView.swift | 18 |
1 files changed, 9 insertions, 9 deletions
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) |