1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-12-21 19:20:06 +01:00

🐛 Ensure reloading warnings also reloads installed taps

This commit is contained in:
2025-08-18 12:49:12 +02:00
parent 5d42481fcc
commit e8e0342f58
3 changed files with 14 additions and 6 deletions

View File

@@ -161,6 +161,8 @@ class WarningManager: ObservableObject {
func checkEnvironment() async {
ActiveShell.reload()
await BrewDiagnostics.loadInstalledTaps()
if ProcessInfo.processInfo.environment["EXTREME_DOCTOR_MODE"] != nil {
self.temporaryWarnings = self.evaluations
await self.broadcastWarnings()

View File

@@ -50,12 +50,6 @@ struct WarningView: View {
}
},
label: {
if busyFixing {
ProgressView()
.progressViewStyle(CircularProgressViewStyle())
.scaleEffect(0.6)
}
Text("Fix Automatically")
}
)
@@ -67,6 +61,17 @@ struct WarningView: View {
}
}
}
if busyFixing {
HStack {
ProgressView()
.progressViewStyle(CircularProgressViewStyle())
.scaleEffect(0.6)
Text("warnings.being_fixed.description".localizedForSwiftUI)
.font(.system(size: 12))
.foregroundStyle(Color.secondary)
}
}
}
}.padding(5)
}

View File

@@ -819,6 +819,7 @@ COMMON TROUBLESHOOTING TIPS
"warnings.limits_error.title" = "PHP Monitor could not retrieve limits.";
"warnings.limits_error.steps" = "Try running php -v in your terminal.";
"warnings.being_fixed.description" = "PHP Monitor is addressing this issue. Please wait a bit.";
"warnings.title" = "PHP Doctor";
"warnings.description" = "**PHP Doctor** will suggest improvements to your active system configuration.";