UI: macOS: remove donation link
Apple forbids us from having a simple donation link in the "About WireGuard" dialog, due to new policies. And arguing with the giant is not going to be a fruitful battle. Do the practical thing and just remove it. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
b51113f680
commit
4ded3f6bfe
|
@ -1,2 +1,2 @@
|
||||||
VERSION_NAME = 1.0.10
|
VERSION_NAME = 1.0.10
|
||||||
VERSION_ID = 18
|
VERSION_ID = 19
|
||||||
|
|
|
@ -210,13 +210,11 @@ extension AppDelegate {
|
||||||
tr(format: "macAppVersion (%@)", appVersion),
|
tr(format: "macAppVersion (%@)", appVersion),
|
||||||
tr(format: "macGoBackendVersion (%@)", WIREGUARD_GO_VERSION)
|
tr(format: "macGoBackendVersion (%@)", WIREGUARD_GO_VERSION)
|
||||||
].joined(separator: "\n")
|
].joined(separator: "\n")
|
||||||
let donateString = NSMutableAttributedString(string: tr("donateLink"))
|
|
||||||
donateString.addAttribute(.link, value: "https://www.wireguard.com/donations/", range: NSRange(location: 0, length: donateString.length))
|
|
||||||
NSApp.activate(ignoringOtherApps: true)
|
NSApp.activate(ignoringOtherApps: true)
|
||||||
NSApp.orderFrontStandardAboutPanel(options: [
|
NSApp.orderFrontStandardAboutPanel(options: [
|
||||||
.applicationVersion: appVersionString,
|
.applicationVersion: appVersionString,
|
||||||
.version: "",
|
.version: "",
|
||||||
.credits: donateString
|
.credits: ""
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue