From 05321adb6d39c74c8f8c1b22706441229af2060a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6ttger?= Date: Wed, 5 Nov 2025 15:09:07 +0100 Subject: [PATCH] Fix: progress bar not shown immediately when receiving many files --- NearbyShare/Connection/InboundNearbyConnection.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/NearbyShare/Connection/InboundNearbyConnection.swift b/NearbyShare/Connection/InboundNearbyConnection.swift index ca1dc5f..2cd00d9 100644 --- a/NearbyShare/Connection/InboundNearbyConnection.swift +++ b/NearbyShare/Connection/InboundNearbyConnection.swift @@ -582,6 +582,11 @@ class InboundNearbyConnection: NearbyConnection { if storeInTemp { try FileManager.default.createDirectory(at: SaveFilesManager.shared.tempDirectory, withIntermediateDirectories: true) } + + if filesToBeReceived.count >= 1 { + // Show progress bar for file transfers immediately + NearbyConnectionManager.shared.updatedTransferProgress(connection: self, progress: 0) + } for (id, file) in filesToBeReceived { let targetURL = storeInTemp ? SaveFilesManager.shared.tempDirectory.appendingPathComponent(file.destinationURL.lastPathComponent) : file.destinationURL