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

👌 Link to FAQ

This commit is contained in:
2022-02-20 15:29:15 +01:00
parent c05cdeda72
commit c952c3d031
2 changed files with 8 additions and 6 deletions

View File

@@ -50,11 +50,9 @@ class Constants {
// dev release. In this case, that means that the version below is detected. // dev release. In this case, that means that the version below is detected.
"8.2" "8.2"
] ]
/**
The URL that people can visit if they wish to help support the project.
*/
static let DonationUrlDirect = URL(string: "https://nicoverbruggen.be/sponsor#pay-now")! static let DonationUrlDirect = URL(string: "https://nicoverbruggen.be/sponsor#pay-now")!
static let DonationUrl = URL(string: "https://nicoverbruggen.be/sponsor")! static let DonationUrl = URL(string: "https://nicoverbruggen.be/sponsor")!
static let FrequentlyAskedQuestionsUrl = URL(string: "https://github.com/nicoverbruggen/phpmon#%EF%B8%8F-faq--troubleshooting")!
} }

View File

@@ -7,6 +7,7 @@
// //
import Foundation import Foundation
import AppKit
extension MainMenu { extension MainMenu {
@@ -70,11 +71,14 @@ extension MainMenu {
subtitle: "alert.fix_my_valet_done.subtitle".localized, subtitle: "alert.fix_my_valet_done.subtitle".localized,
description: "alert.fix_my_valet_done.desc".localized description: "alert.fix_my_valet_done.desc".localized
) )
.withPrimary(text: "alert.fix_my_valet_done.stay".localized(PhpEnv.brewPhpVersion)) .withPrimary(text: "alert.fix_my_valet_done.switch_back".localized(version), action: { alert in
.withSecondary(text: "alert.fix_my_valet_done.switch_back".localized(version), action: { alert in
alert.close(with: .alertSecondButtonReturn) alert.close(with: .alertSecondButtonReturn)
MainMenu.shared.switchToPhpVersion(version) MainMenu.shared.switchToPhpVersion(version)
}) })
.withSecondary(text: "alert.fix_my_valet_done.stay".localized(PhpEnv.brewPhpVersion))
.withTertiary(text: "", action: { alert in
NSWorkspace.shared.open(Constants.FrequentlyAskedQuestionsUrl)
})
.show() .show()
} }