mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-25 15:56:02 +00:00
Fix: progress bar not shown immediately when receiving many files
This commit is contained in:
1 parent
31b93a34a2
commit
05321adb6d
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user