Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

An area's page in Space says how much Space's scan has read

Țugui Dragoș0b3497fc6b82
diff --git a/Peel/Views/Space/SpaceDetailView.swift b/Peel/Views/Space/SpaceDetailView.swift
index f7231bd8..2423e232 100644
--- a/Peel/Views/Space/SpaceDetailView.swift
+++ b/Peel/Views/Space/SpaceDetailView.swift
@@ -78,7 +78,13 @@ struct SpaceDetailView: View {
.dimmedWhileBusy(space.isScanning)
.safeAreaBar(edge: .bottom) {
if !item.isReadOnly {
- RemovalBar(page: Tool.space.page(item.id), isScanning: plan == nil || space.isScanning)
+ // The count is Space's scan's, so it is shown only while that scan runs: the area's first plan is no
+ // part of it, and would show the count the last scan ended with.
+ RemovalBar(
+ page: Tool.space.page(item.id),
+ isScanning: plan == nil || space.isScanning,
+ scan: space.isScanning ? space.scanRun : nil
+ )
}
}
// Made again each time the page opens, since what is inside changes as apps run. A rescan that finds the