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.

Close the Reset question when what it asks about changes

Țugui Dragoșd0e72ab5b2dd
diff --git a/Peel/Views/ResetSheet.swift b/Peel/Views/ResetSheet.swift
index 9bd2bdb5..73c97a32 100644
--- a/Peel/Views/ResetSheet.swift
+++ b/Peel/Views/ResetSheet.swift
@@ -57,6 +57,9 @@ struct ResetSheet: View {
} message: {
confirmation
}
+ // The question stands for what it showed, so a change under it, such as an exclusion, closes it.
+ .onChange(of: plan.selectedURLs) { isConfirming = false }
+ .onChange(of: plan.canResetPrivacy) { isConfirming = false }
// Runs again when the exclusions change, because an item the user excludes must drop out of the reset.
.task(id: exclusions.revision) {
await plan.refresh(installedApps: library.apps)