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.

Reset waits for the scan before it can be confirmed

Țugui Dragoșc6e5166fd219
diff --git a/Peel/Model/ResetPlan.swift b/Peel/Model/ResetPlan.swift
index 7a0ebb34..f65d1486 100644
--- a/Peel/Model/ResetPlan.swift
+++ b/Peel/Model/ResetPlan.swift
@@ -60,8 +60,9 @@ final class ResetPlan {
PrivacyReset.isAllowed(bundleIdentifier: app.bundleIdentifier)
}
+ /// Nothing is, until the scan has said what the reset would take: `performReset()` has nothing to go on before.
var hasAnythingToReset: Bool {
- !selectedURLs.isEmpty || (resetsPrivacy && canResetPrivacy)
+ reset != nil && (!selectedURLs.isEmpty || (resetsPrivacy && canResetPrivacy))
}
/// Updates `isAppRunning`. Called when the sheet opens and whenever an app launches or quits.