1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 20:10:08 +02: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.
"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 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 AppKit
extension MainMenu {
@ -70,11 +71,14 @@ extension MainMenu {
subtitle: "alert.fix_my_valet_done.subtitle".localized,
description: "alert.fix_my_valet_done.desc".localized
)
.withPrimary(text: "alert.fix_my_valet_done.stay".localized(PhpEnv.brewPhpVersion))
.withSecondary(text: "alert.fix_my_valet_done.switch_back".localized(version), action: { alert in
.withPrimary(text: "alert.fix_my_valet_done.switch_back".localized(version), action: { alert in
alert.close(with: .alertSecondButtonReturn)
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()
}