Fix likely cause of iCloud progress not getting down to zero tasks remaining (in some cases, intermittently).

This commit is contained in:
Brent Simmons committed 2025-10-22 10:02:01 -07:00
1 parent e3d4dfb9ac
commit 23fc833cd0
1 file changed
+1 -2
@@ -115,8 +115,7 @@ private extension CloudKitSendStatusOperation {
}
func done(_ stop: Bool) {
// Don't clear the last one since we might have had additional ticks added
if self.showProgress && self.refreshProgress?.numberRemaining ?? 0 > 1 {
if self.showProgress {
self.refreshProgress?.completeTask()
}
Self.logger.debug("iCloud: Finished sending article status block")