Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.
Swift cache-cleanercleanerclideveloper-toolsdisk-cleanupdisk-spaceduplicate-finderhomebrewliquid-glassmac-cleanermacosmacos-appmacos-golden-gatemacos-tahoemacos-tweaksswiftswiftuiterminal-themesuninstalluninstaller
An Intel finding looks for its app once per drawing of its page
Țugui Dragoș8d93f3506464
diff --git a/Peel/Views/Intel/IntelDetailView.swift b/Peel/Views/Intel/IntelDetailView.swiftindex 7ae2fea9..1cb8976d 100644--- a/Peel/Views/Intel/IntelDetailView.swift+++ b/Peel/Views/Intel/IntelDetailView.swift@@ -6,13 +6,9 @@ struct IntelDetailView: View {@Environment(AppLibrary.self) private var librarylet finding: IntelFinding- private var app: InstalledApp? {- AppCatalog.app(holding: finding.url, among: library.apps)- }-- /// When the app was last opened, for an app or a bundle inside one. Read from the list, which follows it, since+ /// When `app` was last opened, for an app or a bundle inside one. Read from the list, which follows it, since/// a new date is no reason to scan again.- private var lastOpened: Date? {+ private func lastOpened(of app: InstalledApp?) -> Date? {switch finding.kind {case .app, .insideApp: app?.lastUsedDatecase .plugin, .driver, .backgroundItem, .commandLineTool: nil@@ -20,6 +16,8 @@ struct IntelDetailView: View {}var body: some View {+ // Found once for the whole page: it walks every app.+ let app = AppCatalog.app(holding: finding.url, among: library.apps)Form {Section {header@@ -71,7 +69,7 @@ struct IntelDetailView: View {LabeledContent("Size") {Text(finding.size.byteCount).monospacedDigit()}- if let lastOpened {+ if let lastOpened = lastOpened(of: app) {LabeledContent("Last opened") {Text(lastOpened, format: .relative(presentation: .named))}