From eac2df3d44f92c7febdc8b5fa741062c7961d231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6ttger?= Date: Mon, 28 Jul 2025 21:12:22 +0200 Subject: [PATCH] Add error instructions for timeout --- QuickDrop.xcodeproj/project.pbxproj | 8 ++++---- QuickDrop/Util/ErrorAlertHandler.swift | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/QuickDrop.xcodeproj/project.pbxproj b/QuickDrop.xcodeproj/project.pbxproj index 5a034a4..43246d3 100644 --- a/QuickDrop.xcodeproj/project.pbxproj +++ b/QuickDrop.xcodeproj/project.pbxproj @@ -888,8 +888,8 @@ MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; SDKROOT = macosx; - SHARED_BUILD = 57; - SHARED_VERSION = 1.11; + SHARED_BUILD = 58; + SHARED_VERSION = 1.11.1; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -950,8 +950,8 @@ MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = macosx; - SHARED_BUILD = 57; - SHARED_VERSION = 1.11; + SHARED_BUILD = 58; + SHARED_VERSION = 1.11.1; SWIFT_COMPILATION_MODE = wholemodule; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_OPTIMIZATION_LEVEL = "-O"; diff --git a/QuickDrop/Util/ErrorAlertHandler.swift b/QuickDrop/Util/ErrorAlertHandler.swift index 4e8f531..bc1bc34 100644 --- a/QuickDrop/Util/ErrorAlertHandler.swift +++ b/QuickDrop/Util/ErrorAlertHandler.swift @@ -43,7 +43,12 @@ class ErrorAlertHandler { case .ukey2: description = "Error.Crypto".localized() + ": \(ne.localizedDescription)" + fixInstructions case .canceled(reason: let reason): - description = reason.localizedDescription() + if reason == .timedOut { + description = reason.localizedDescription() + fixInstructions + } + else { + description = reason.localizedDescription() + } } } else { description = error.localizedDescription