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.

Say what Background Items' count of scans is for now

Țugui Dragoș7e1b91c79ea0
diff --git a/Peel/Model/BackgroundItemLibrary.swift b/Peel/Model/BackgroundItemLibrary.swift
index e0c96c4f..57c27280 100644
--- a/Peel/Model/BackgroundItemLibrary.swift
+++ b/Peel/Model/BackgroundItemLibrary.swift
@@ -15,7 +15,7 @@ final class BackgroundItemLibrary {
var isScanning: Bool { scanRun.isRunning }
/// Whether a scan runs that VoiceOver is told of. An action says how it went itself, and its own scan follows.
var isScanningAsAsked: Bool { isScanning && runningActionItemIDs.isEmpty }
- /// Counts the scans that finished, so an item's page asks macOS about it again with each.
+ /// Counts the scans that finished: what an action did is told to VoiceOver only once a scan after it has ended.
private(set) var scans = 0
/// The items with an action in progress. Each is tracked on its own, so one row's action ending never
/// clears another row's busy state.
diff --git a/PeelTests/BackgroundItemLibraryTests.swift b/PeelTests/BackgroundItemLibraryTests.swift
index 991e1291..01b1fead 100644
--- a/PeelTests/BackgroundItemLibraryTests.swift
+++ b/PeelTests/BackgroundItemLibraryTests.swift
@@ -36,7 +36,7 @@ struct BackgroundItemLibraryTests {
await library.readAgain(installedApps: [])
#expect(library.items?.map(\.label) == [job.label])
- #expect(library.scans == scans + 1, "the item's page asks macOS again")
+ #expect(library.scans == scans + 1, "a read again counts as a scan that ended")
#expect(reads.wereShownAsAScan == [true, false], "a read again is announced to nobody")
}