mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2026-03-27 22:40:08 +01:00
🐛 Ensure reloading warnings also reloads installed taps
This commit is contained in:
@@ -161,6 +161,8 @@ class WarningManager: ObservableObject {
|
|||||||
func checkEnvironment() async {
|
func checkEnvironment() async {
|
||||||
ActiveShell.reload()
|
ActiveShell.reload()
|
||||||
|
|
||||||
|
await BrewDiagnostics.loadInstalledTaps()
|
||||||
|
|
||||||
if ProcessInfo.processInfo.environment["EXTREME_DOCTOR_MODE"] != nil {
|
if ProcessInfo.processInfo.environment["EXTREME_DOCTOR_MODE"] != nil {
|
||||||
self.temporaryWarnings = self.evaluations
|
self.temporaryWarnings = self.evaluations
|
||||||
await self.broadcastWarnings()
|
await self.broadcastWarnings()
|
||||||
|
|||||||
@@ -50,12 +50,6 @@ struct WarningView: View {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
if busyFixing {
|
|
||||||
ProgressView()
|
|
||||||
.progressViewStyle(CircularProgressViewStyle())
|
|
||||||
.scaleEffect(0.6)
|
|
||||||
}
|
|
||||||
|
|
||||||
Text("Fix Automatically")
|
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)
|
}.padding(5)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -819,6 +819,7 @@ COMMON TROUBLESHOOTING TIPS
|
|||||||
|
|
||||||
"warnings.limits_error.title" = "PHP Monitor could not retrieve limits.";
|
"warnings.limits_error.title" = "PHP Monitor could not retrieve limits.";
|
||||||
"warnings.limits_error.steps" = "Try running ‘php -v’ in your terminal.";
|
"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.title" = "PHP Doctor";
|
||||||
"warnings.description" = "**PHP Doctor** will suggest improvements to your active system configuration.";
|
"warnings.description" = "**PHP Doctor** will suggest improvements to your active system configuration.";
|
||||||
|
|||||||
Reference in New Issue
Block a user