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.

Leave an update answer that changes nothing unwritten

Țugui Dragoș3582accc487f
diff --git a/Peel/Model/AppLibrary.swift b/Peel/Model/AppLibrary.swift
index 4bee6b2e..7e8d9421 100644
--- a/Peel/Model/AppLibrary.swift
+++ b/Peel/Model/AppLibrary.swift
@@ -565,7 +565,10 @@ final class AppLibrary {
continue
}
let kept = status.following(updateStatuses[id])
- updateStatuses[id] = kept
+ // Any write redraws the whole Applications list, so an answer that changes nothing is not written.
+ if updateStatuses[id] != kept {
+ updateStatuses[id] = kept
+ }
if status != .failed {
lastUpdateChecks[id] = .now
}