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.

Keep what a checkbox can select beside its own doc

Țugui Dragoș99fb173ef187
diff --git a/Packages/PeelCore/Sources/PeelCore/Removal/BulkUninstallation.swift b/Packages/PeelCore/Sources/PeelCore/Removal/BulkUninstallation.swift
index 5b82de4a..df97be37 100644
--- a/Packages/PeelCore/Sources/PeelCore/Removal/BulkUninstallation.swift
+++ b/Packages/PeelCore/Sources/PeelCore/Removal/BulkUninstallation.swift
@@ -137,11 +137,6 @@ public struct BulkUninstallation: Sendable {
/// What a checkbox can select, by the rule of an app's own page: nothing Peel leaves alone or with something
/// excluded inside, nothing that needs the helper while it cannot act, no app macOS keeps, that sits inside
/// another package, or that the helper may not move, and nothing of Peel.
- /// How many rows only the helper can move and a person could select once it can act.
- public var rowsWaitingForTheHelper: Int {
- privilegedURLs.intersection(selectable(canUseHelper: true)).count
- }
-
public func selectable(canUseHelper: Bool) -> Set<URL> {
Set(items.filter { item in
!item.isExcluded && item.removedElsewhere == nil && !item.isBeyondTheHelper && !item.isInTheTrash
@@ -151,6 +146,11 @@ public struct BulkUninstallation: Sendable {
}.map(\.url))
}
+ /// How many rows only the helper can move and a person could select once it can act.
+ public var rowsWaitingForTheHelper: Int {
+ privilegedURLs.intersection(selectable(canUseHelper: true)).count
+ }
+
/// The files of the app `reference` names (`InstalledApp.reference`): its leftovers, and what it shares with
/// another chosen app. Two copies of an app share these, and each has a bundle of its own.
public func files(of reference: String) -> Set<URL> {