@@ -145,10 +145,6 @@ extension ProgressManager {
145
145
state. getFileCountUpdateInfo ( type: type)
146
146
}
147
147
148
- // for child in updateInfo.dirtyChildren.compactMap({ $0.manager }) {
149
- // child.access(keyPath: \.summarySink)
150
- // }
151
-
152
148
// Get updated summary for each dirty child
153
149
let updatedSummaries = updateInfo. dirtyChildren. map { ( index, child) in
154
150
State . FileCountUpdate ( index: index, updatedSummary: child. updatedFileCount ( type: type) )
@@ -292,91 +288,103 @@ extension ProgressManager {
292
288
}
293
289
294
290
internal func markChildDirty( property: MetatypeWrapper < Int , Int > , at position: Int ) {
291
+ self . willSet ( keyPath: \. additionalPropertiesSummarySink)
295
292
let parents = state. withLock { state in
296
293
state. markChildDirty ( property: property, at: position)
297
294
}
298
295
markSelfDirty ( property: property, parents: parents)
299
296
}
300
297
301
298
internal func markChildDirty( property: MetatypeWrapper < UInt64 , UInt64 > , at position: Int ) {
299
+ self . willSet ( keyPath: \. additionalPropertiesSummarySink)
302
300
let parents = state. withLock { state in
303
301
state. markChildDirty ( property: property, at: position)
304
302
}
305
303
markSelfDirty ( property: property, parents: parents)
306
304
}
307
305
308
306
internal func markChildDirty( property: MetatypeWrapper < Double , Double > , at position: Int ) {
307
+ self . willSet ( keyPath: \. additionalPropertiesSummarySink)
309
308
let parents = state. withLock { state in
310
309
state. markChildDirty ( property: property, at: position)
311
310
}
312
311
markSelfDirty ( property: property, parents: parents)
313
312
}
314
313
315
314
internal func markChildDirty( property: MetatypeWrapper < String ? , [ String ? ] > , at position: Int ) {
315
+ self . willSet ( keyPath: \. additionalPropertiesSummarySink)
316
316
let parents = state. withLock { state in
317
317
state. markChildDirty ( property: property, at: position)
318
318
}
319
319
markSelfDirty ( property: property, parents: parents)
320
320
}
321
321
322
322
internal func markChildDirty( property: MetatypeWrapper < URL ? , [ URL ? ] > , at position: Int ) {
323
+ self . willSet ( keyPath: \. additionalPropertiesSummarySink)
323
324
let parents = state. withLock { state in
324
325
state. markChildDirty ( property: property, at: position)
325
326
}
326
327
markSelfDirty ( property: property, parents: parents)
327
328
}
328
329
329
330
internal func markChildDirty( property: MetatypeWrapper < UInt64 , [ UInt64 ] > , at position: Int ) {
331
+ self . willSet ( keyPath: \. additionalPropertiesSummarySink)
330
332
let parents = state. withLock { state in
331
333
state. markChildDirty ( property: property, at: position)
332
334
}
333
335
markSelfDirty ( property: property, parents: parents)
334
336
}
335
337
336
338
internal func markChildDirty( property: MetatypeWrapper < Duration , Duration > , at position: Int ) {
339
+ self . willSet ( keyPath: \. additionalPropertiesSummarySink)
337
340
let parents = state. withLock { state in
338
341
state. markChildDirty ( property: property, at: position)
339
342
}
340
343
markSelfDirty ( property: property, parents: parents)
341
344
}
342
345
343
346
internal func markChildDirty( property: ProgressManager . Properties . TotalFileCount . Type , at position: Int ) {
344
- self . willSet ( keyPath: \. summarySink )
347
+ self . willSet ( keyPath: \. totalFileCountSummary )
345
348
let parents = state. withLock { state in
346
349
state. markChildDirty ( property: property, at: position)
347
350
}
348
351
markSelfDirty ( property: property, parents: parents)
349
352
}
350
353
351
354
internal func markChildDirty( property: ProgressManager . Properties . CompletedFileCount . Type , at position: Int ) {
355
+ self . willSet ( keyPath: \. completedFileCountSummary)
352
356
let parents = state. withLock { state in
353
357
state. markChildDirty ( property: property, at: position)
354
358
}
355
359
markSelfDirty ( property: property, parents: parents)
356
360
}
357
361
358
362
internal func markChildDirty( property: ProgressManager . Properties . TotalByteCount . Type , at position: Int ) {
363
+ self . willSet ( keyPath: \. totalByteCountSummary)
359
364
let parents = state. withLock { state in
360
365
state. markChildDirty ( property: property, at: position)
361
366
}
362
367
markSelfDirty ( property: property, parents: parents)
363
368
}
364
369
365
370
internal func markChildDirty( property: ProgressManager . Properties . CompletedByteCount . Type , at position: Int ) {
371
+ self . willSet ( keyPath: \. completedByteCountSummary)
366
372
let parents = state. withLock { state in
367
373
state. markChildDirty ( property: property, at: position)
368
374
}
369
375
markSelfDirty ( property: property, parents: parents)
370
376
}
371
377
372
378
internal func markChildDirty( property: ProgressManager . Properties . Throughput . Type , at position: Int ) {
379
+ self . willSet ( keyPath: \. throughputSummary)
373
380
let parents = state. withLock { state in
374
381
state. markChildDirty ( property: property, at: position)
375
382
}
376
383
markSelfDirty ( property: property, parents: parents)
377
384
}
378
385
379
386
internal func markChildDirty( property: ProgressManager . Properties . EstimatedTimeRemaining . Type , at position: Int ) {
387
+ self . willSet ( keyPath: \. estimatedTimeRemainingSummary)
380
388
let parents = state. withLock { state in
381
389
state. markChildDirty ( property: property, at: position)
382
390
}
0 commit comments