diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-12-16 00:03:34 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-12-16 00:04:32 +0100 |
commit | 4ded3f6bfe4826788ded865a83854c63e300fffe (patch) | |
tree | 8b295bd005e6a8157ac77e910235139d8cbe4ec4 /Sources/WireGuardApp/UI/macOS | |
parent | Version bump (diff) | |
download | wireguard-apple-4ded3f6bfe4826788ded865a83854c63e300fffe.tar.xz wireguard-apple-4ded3f6bfe4826788ded865a83854c63e300fffe.zip |
UI: macOS: remove donation link1.0.10-19
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>
Diffstat (limited to '')
-rw-r--r-- | Sources/WireGuardApp/UI/macOS/AppDelegate.swift | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Sources/WireGuardApp/UI/macOS/AppDelegate.swift b/Sources/WireGuardApp/UI/macOS/AppDelegate.swift index a4f4045..0c33896 100644 --- a/Sources/WireGuardApp/UI/macOS/AppDelegate.swift +++ b/Sources/WireGuardApp/UI/macOS/AppDelegate.swift @@ -210,13 +210,11 @@ extension AppDelegate { tr(format: "macAppVersion (%@)", appVersion), tr(format: "macGoBackendVersion (%@)", WIREGUARD_GO_VERSION) ].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.orderFrontStandardAboutPanel(options: [ .applicationVersion: appVersionString, .version: "", - .credits: donateString + .credits: "" ]) } } |