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.

Finish installing and uninstalling the helper only once it has been asked again

Țugui Dragoș9e1442401644
diff --git a/Peel/Model/HelperModel.swift b/Peel/Model/HelperModel.swift
index 42a3bdf1..f81f79eb 100644
--- a/Peel/Model/HelperModel.swift
+++ b/Peel/Model/HelperModel.swift
@@ -78,6 +78,7 @@ final class HelperModel {
if status == .requiresApproval {
PrivilegedHelper.openLoginItemsSettings()
}
+ await checkConnection()
}
func repair() async {
@@ -110,5 +111,6 @@ final class HelperModel {
}
checks.changeEnds()
refresh()
+ await checkConnection()
}
}
diff --git a/Peel/Views/Settings/SettingsView.swift b/Peel/Views/Settings/SettingsView.swift
index a1d519bf..27c76695 100644
--- a/Peel/Views/Settings/SettingsView.swift
+++ b/Peel/Views/Settings/SettingsView.swift
@@ -682,7 +682,7 @@ private struct HelperSettingsView: View {
.listRowBackground(Color.clear)
}
.formStyle(.grouped)
- .task(id: helper.status) {
+ .task {
await helper.checkConnection()
}
.alert(helperFailureTitle, isPresented: isShowingFailure) {