]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
UI: macOS: remove donation link 1.0.10-19
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 15 Dec 2020 23:03:34 +0000 (00:03 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 15 Dec 2020 23:04:32 +0000 (00:04 +0100)
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>
Sources/WireGuardApp/Config/Version.xcconfig
Sources/WireGuardApp/UI/macOS/AppDelegate.swift

index 66399e68dc6294a579e0d41561f2d6b91f7e8307..058a4f73857268410fce67fa58c315d5295e1167 100644 (file)
@@ -1,2 +1,2 @@
 VERSION_NAME = 1.0.10
-VERSION_ID = 18
+VERSION_ID = 19
index a4f4045c60ae0d1e0c458cc4595e5a165db94562..0c33896a0b26c2333048a9d6dcff979d5507dd12 100644 (file)
@@ -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: ""
         ])
     }
 }