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.

Coming forward no longer asks smd on the main thread

Țugui Dragoș9a1408124f81
diff --git a/Peel/PeelApp.swift b/Peel/PeelApp.swift
index 4f419c81..b4cf7e81 100644
--- a/Peel/PeelApp.swift
+++ b/Peel/PeelApp.swift
@@ -151,14 +151,13 @@ struct PeelApp: App {
private func followActivations() async {
for await _ in NotificationCenter.default.notifications(named: NSApplication.didBecomeActiveNotification) {
guard !Task.isCancelled else { return }
- helper.refresh()
// `peel exclusions` may have changed the list while another app was in front.
Task { await exclusions.load() }
// History may have become readable again meanwhile, or stopped being, and `peel` may have moved something.
history.checkReadability()
stats.reload()
// Home's checks run again whatever page is showing: permissions change in System Settings, and the
- // badge on Home in the sidebar shows a missing one.
+ // badge on Home in the sidebar shows a missing one. They read the helper's status again too.
Task { await home.refresh(helper: helper) }
Task {
// Whichever read finds a changed bundle checks it again. When two reads overlap, only the newer