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:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user