]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
UI: Remove addendum on on-demand from error on tunnel activation
authorRoopesh Chander <roop@roopc.net>
Wed, 28 Jul 2021 06:21:23 +0000 (11:51 +0530)
committerRoopesh Chander <roop@roopc.net>
Wed, 28 Jul 2021 06:22:54 +0000 (11:52 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
Sources/WireGuardApp/Base.lproj/Localizable.strings
Sources/WireGuardApp/Tunnel/TunnelErrors.swift

index 8127fe5dcf016fc5b6fc06bb0dde79379c2ede5c..2974ba7b4a24af8b61dbe75b9efcad7c162631de 100644 (file)
 "alertTunnelActivationFileDescriptorFailureMessage" = "Unable to determine TUN device file descriptor.";
 "alertTunnelActivationSetNetworkSettingsMessage" = "Unable to apply network settings to tunnel object.";
 
-"alertTunnelActivationFailureOnDemandAddendum" = " This tunnel has Activate On Demand enabled, so this tunnel might be re-activated automatically by the OS. You may turn off Activate On Demand in this app by editing the tunnel configuration.";
-
 "alertTunnelDNSFailureTitle" = "DNS resolution failure";
 "alertTunnelDNSFailureMessage" = "One or more endpoint domains could not be resolved.";
 
index 99c90d0020861e0c82e4c953896ba90f5ffd880d..7031646ebdf91cc086809a17ae72aa184a5954cd 100644 (file)
@@ -56,10 +56,10 @@ enum TunnelsManagerActivationError: WireGuardAppError {
 
     var alertText: AlertText {
         switch self {
-        case .activationFailed(let wasOnDemandEnabled):
-            return (tr("alertTunnelActivationFailureTitle"), tr("alertTunnelActivationFailureMessage") + (wasOnDemandEnabled ? tr("alertTunnelActivationFailureOnDemandAddendum") : ""))
-        case .activationFailedWithExtensionError(let title, let message, let wasOnDemandEnabled):
-            return (title, message + (wasOnDemandEnabled ? tr("alertTunnelActivationFailureOnDemandAddendum") : ""))
+        case .activationFailed:
+            return (tr("alertTunnelActivationFailureTitle"), tr("alertTunnelActivationFailureMessage"))
+        case .activationFailedWithExtensionError(let title, let message, _):
+            return (title, message)
         }
     }
 }