mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-08 04:20:07 +02:00
👌 Link to FAQ
This commit is contained in:
@ -51,10 +51,8 @@ class Constants {
|
||||
"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")!
|
||||
|
||||
}
|
||||
|
@ -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()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user