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.

Say Checking… in Settings until the helper has been checked

Țugui Dragoșa196ad61ea5b
diff --git a/Peel/Views/Settings/SettingsView.swift b/Peel/Views/Settings/SettingsView.swift
index 27c76695..a705eea2 100644
--- a/Peel/Views/Settings/SettingsView.swift
+++ b/Peel/Views/Settings/SettingsView.swift
@@ -702,17 +702,21 @@ private struct HelperSettingsView: View {
@ViewBuilder
private var statusBadge: some View {
- switch helper.standing {
- case .notThisAccount:
- state("Needs an administrator", "person.crop.circle.badge.exclamationmark", .orange)
- case .notAnswering:
- state("Not answering", "exclamationmark.triangle", .orange)
- case .ready:
- state("Installed", "checkmark.circle", .green)
- case .waitingForApproval:
- state("Needs approval, or was turned off", "clock", .orange)
- case .notInstalled:
- state("Not installed", "minus.circle", .secondary)
+ if !helper.hasChecked {
+ state("Checking…", "hourglass", .secondary)
+ } else {
+ switch helper.standing {
+ case .notThisAccount:
+ state("Needs an administrator", "person.crop.circle.badge.exclamationmark", .orange)
+ case .notAnswering:
+ state("Not answering", "exclamationmark.triangle", .orange)
+ case .ready:
+ state("Installed", "checkmark.circle", .green)
+ case .waitingForApproval:
+ state("Needs approval, or was turned off", "clock", .orange)
+ case .notInstalled:
+ state("Not installed", "minus.circle", .secondary)
+ }
}
}