From 2f8f71d0410f59d5d303a4c221a628630168bfe2 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Fri, 5 Jan 2024 19:46:13 -0800 Subject: Add image preview to Files so you don't have to download images to view them, works with animated GIFs too. Added cmd-R shortcut for Servers window. More work on login view. --- Hotline/iOS/FilesView.swift | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Hotline/iOS/FilesView.swift') diff --git a/Hotline/iOS/FilesView.swift b/Hotline/iOS/FilesView.swift index 5815ca2..017a469 100644 --- a/Hotline/iOS/FilesView.swift +++ b/Hotline/iOS/FilesView.swift @@ -31,6 +31,11 @@ struct FileView: View { return } + // Some servers don't reply when asking for the contents of an empty folder. + if file.isFolder && file.fileSize == 0 { + return + } + Task { await model.getFileList(path: file.path) } -- cgit