aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/FilesView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2024-05-14 13:35:26 -0700
committerDustin Mierau <dustin@mierau.me>2024-05-14 13:35:26 -0700
commit87e979fb48da4a46e64544cea3e7b7d5fc32caa1 (patch)
tree4c10cdba5a88544543bf45ae454f643decf1358c /Hotline/macOS/FilesView.swift
parente9fcf8c3b14e77479a6fb471bb51cd82a008147c (diff)
Newsgroup posting now works. Added reload button to news. More work on server and user icons.
Diffstat (limited to 'Hotline/macOS/FilesView.swift')
-rw-r--r--Hotline/macOS/FilesView.swift18
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)