1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-08 04:20:07 +02:00

🐛 Fix issue with "Fix Homebrew Permissions"

This commit is contained in:
2022-02-20 16:33:56 +01:00
parent 42848764cf
commit e0f40be188
3 changed files with 9 additions and 8 deletions

View File

@ -1175,7 +1175,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MACOSX_DEPLOYMENT_TARGET = 11.0; MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = "5.1.0-dev"; MARKETING_VERSION = "5.1-dev";
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon; PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
@ -1201,7 +1201,7 @@
"@executable_path/../Frameworks", "@executable_path/../Frameworks",
); );
MACOSX_DEPLOYMENT_TARGET = 11.0; MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = "5.1.0-dev"; MARKETING_VERSION = "5.1-dev";
PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon; PRODUCT_BUNDLE_IDENTIFIER = com.nicoverbruggen.phpmon;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";

View File

@ -170,7 +170,7 @@ class MainMenu: NSObject, NSWindowDelegate, NSMenuDelegate, PhpSwitcherDelegate
// MARK: - Actions // MARK: - Actions
@objc func fixHomebrewPermissions() { @objc func fixHomebrewPermissions() {
if BetterAlert() if !BetterAlert()
.withInformation( .withInformation(
title: "alert.fix_homebrew_permissions.title".localized, title: "alert.fix_homebrew_permissions.title".localized,
subtitle: "alert.fix_homebrew_permissions.info".localized subtitle: "alert.fix_homebrew_permissions.info".localized
@ -187,7 +187,8 @@ class MainMenu: NSObject, NSWindowDelegate, NSMenuDelegate, PhpSwitcherDelegate
BetterAlert() BetterAlert()
.withInformation( .withInformation(
title: "alert.fix_homebrew_permissions_done.title".localized, title: "alert.fix_homebrew_permissions_done.title".localized,
subtitle: "alert.fix_homebrew_permissions_done.info".localized subtitle: "alert.fix_homebrew_permissions_done.subtitle".localized,
description: "alert.fix_homebrew_permissions_done.desc".localized
) )
.withPrimary(text: "OK") .withPrimary(text: "OK")
.show() .show()

View File

@ -25,9 +25,8 @@
"mi_manage_services" = "Manage Services"; "mi_manage_services" = "Manage Services";
"mi_restart_all_services" = "Restart All Services"; "mi_restart_all_services" = "Restart All Services";
"mi_stop_all_services" = "Stop All Services"; "mi_stop_all_services" = "Stop All Services";
"mi_fix_my_valet" = "Fix My Valet (PHP & Services)"; "mi_fix_my_valet" = "Fix My Valet...";
"mi_fix_my_valet_unavailable" = "Fix My Valet Unavailable"; "mi_fix_brew_permissions" = "Restore Homebrew Permissions...";
"mi_fix_brew_permissions" = "Restore Homebrew Permissions";
"mi_php_refresh" = "Refresh Information"; "mi_php_refresh" = "Refresh Information";
"mi_configuration" = "PHP Configuration"; "mi_configuration" = "PHP Configuration";
@ -230,7 +229,8 @@ problem manually, using your own Terminal app (this just shows you the output)."
"alert.fix_homebrew_permissions.cancel" = "Cancel"; "alert.fix_homebrew_permissions.cancel" = "Cancel";
"alert.fix_homebrew_permissions_done.title" = "Permissions Fixed!"; "alert.fix_homebrew_permissions_done.title" = "Permissions Fixed!";
"alert.fix_homebrew_permissions_done.info" = "When you are done with Homebrew, you should open PHP Monitor and restart all services if you want Valet to work again. It is also recommended to restart PHP Monitor after running `brew upgrade`."; "alert.fix_homebrew_permissions_done.subtitle" = "All services are currently disabled. You can now interact with Homebrew.";
"alert.fix_homebrew_permissions_done.desc" = "When you are done with Homebrew (after running `brew upgrade`, for example, you should restart PHP Monitor and select \"Restart All Services\" if you want Valet to work again. It is always recommended to restart PHP Monitor whenever you upgrade PHP versions with `brew upgrade`, or things might break.";
// PHP FPM Broken // PHP FPM Broken
"alert.php_fpm_broken.title" = "PHP-FPM configuration is incorrect"; "alert.php_fpm_broken.title" = "PHP-FPM configuration is incorrect";