From 4ded3f6bfe4826788ded865a83854c63e300fffe Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 16 Dec 2020 00:03:34 +0100 Subject: 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 --- Sources/WireGuardApp/Config/Version.xcconfig | 2 +- Sources/WireGuardApp/UI/macOS/AppDelegate.swift | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'Sources') diff --git a/Sources/WireGuardApp/Config/Version.xcconfig b/Sources/WireGuardApp/Config/Version.xcconfig index 66399e6..058a4f7 100644 --- a/Sources/WireGuardApp/Config/Version.xcconfig +++ b/Sources/WireGuardApp/Config/Version.xcconfig @@ -1,2 +1,2 @@ VERSION_NAME = 1.0.10 -VERSION_ID = 18 +VERSION_ID = 19 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: "" ]) } } -- cgit v1.2.3-59-g8ed1b