1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-06 19:40:08 +02:00

🐛 Prevent operations when PHP Monitor is busy

This commit is contained in:
2023-05-27 11:57:41 +02:00
parent b041ca37be
commit 54f83a0aed
2 changed files with 5 additions and 2 deletions

View File

@ -191,8 +191,8 @@ struct PhpFormulaeView: View {
public func runCommand(_ command: InstallAndUpgradeCommand) async {
if PhpEnvironments.shared.isBusy {
self.presentErrorAlert(
title: "phpman.busy.title".localized,
description: "phpman.busy.desc".localized,
title: "phpman.action_prevented_busy.title".localized,
description: "phpman.action_prevented_busy.desc".localized,
button: "generic.ok".localized
)
return

View File

@ -128,6 +128,9 @@ You may be asked for your password during the uninstallation process if file per
%@";
"phpman.action_prevented_busy.title" = "PHP Monitor is currently busy.";
"phpman.action_prevented_busy.desc" = "PHP Monitor is currently doing something like switching between PHP versions. To ensure your system does not break, you will need to wait until PHP Monitor is ready in order before you try this again.";
"phpman.uninstall_prevented.title" = "You cannot uninstall the currently active version of PHP via PHP Monitor.";
"phpman.uninstall_prevented.desc" = "In order to prevent issues with PHP Monitor and further crashes, it isn't possible to uninstall the currently linked version of PHP via this UI. You can switch versions and try again, or uninstall this version manually via the terminal.\n\nPlease note that PHP Monitor may crash if you uninstall the currently linked PHP version.";