From 2c4d661ef3b0db2f4e8393943a383c6a3243e1f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6ttger?= Date: Sat, 26 Jul 2025 18:48:14 +0200 Subject: [PATCH] Also show error message for connections that were not approved yet --- QuickDrop/AppDelegate.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/QuickDrop/AppDelegate.swift b/QuickDrop/AppDelegate.swift index 65a2b76..46b70c9 100644 --- a/QuickDrop/AppDelegate.swift +++ b/QuickDrop/AppDelegate.swift @@ -424,7 +424,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele func incomingTransfer(id: String, didFinishWith error: Error?) { - guard let transfer = activeIncomingTransfers[id] else { return } if let error = error { @@ -433,7 +432,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele plusWindow.close() } - ErrorAlertHandler.shared.showErrorAlert(for: transfer.device.name, error: error) + ErrorAlertHandler.shared.showErrorAlert(for: activeIncomingTransfers[id]?.device.name ?? "Android", error: error) } else { let currentCount = transmissionCount() if currentCount == 0 {