Skip to content

Commit 5ecd68a

Browse files
committed
Show file upscaling progress in Finder
1 parent b3a76b5 commit 5ecd68a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Sources/Upscaling/UpscalingExportSession.swift

+7-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ public class UpscalingExportSession {
2424
}
2525
self.outputSize = outputSize
2626
self.creator = creator
27+
progress = Progress(parent: nil, userInfo: [
28+
.fileURLKey: outputURL
29+
])
30+
progress.fileURL = outputURL
31+
progress.isCancellable = false
32+
progress.publish()
2733
}
2834

2935
// MARK: Public
@@ -36,7 +42,7 @@ public class UpscalingExportSession {
3642
public let outputSize: CGSize
3743
public let creator: String?
3844

39-
public let progress = Progress()
45+
public let progress: Progress
4046

4147
public func export() async throws {
4248
guard !FileManager.default.fileExists(atPath: outputURL.path(percentEncoded: false)) else {

0 commit comments

Comments
 (0)