1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-07 13:20:05 +01:00

👌 Await the outcome of cash conflict check

This commit is contained in:
2022-12-19 17:30:56 +01:00
parent c85a8e3818
commit 0fdd1264ed
4 changed files with 13 additions and 15 deletions

View File

@@ -52,11 +52,9 @@ class HomebrewDiagnostics {
This check only needs to be performed if the `shivammathur/php` tap is active.
*/
public static func checkForCaskConflict() {
Task { // Check if there's a conflict
if await hasAliasConflict() {
presentAlertAboutConflict()
}
public static func checkForCaskConflict() async {
if await hasAliasConflict() {
presentAlertAboutConflict()
}
}

View File

@@ -60,7 +60,7 @@ extension MainMenu {
await PhpEnv.detectPhpVersions()
// Check for an alias conflict
HomebrewDiagnostics.checkForCaskConflict()
await HomebrewDiagnostics.checkForCaskConflict()
// Update the icon
updatePhpVersionInStatusBar()