mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-21 22:05:59 +00:00
Also show error message for connections that were not approved yet
This commit is contained in:
1 parent
71ef68d4cb
commit
2c4d661ef3
1 file changed
+1
-2
@@ -424,7 +424,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
|
|||||||
|
|
||||||
|
|
||||||
func incomingTransfer(id: String, didFinishWith error: Error?) {
|
func incomingTransfer(id: String, didFinishWith error: Error?) {
|
||||||
guard let transfer = activeIncomingTransfers[id] else { return }
|
|
||||||
|
|
||||||
if let error = error {
|
if let error = error {
|
||||||
|
|
||||||
@@ -433,7 +432,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
|
|||||||
plusWindow.close()
|
plusWindow.close()
|
||||||
}
|
}
|
||||||
|
|
||||||
ErrorAlertHandler.shared.showErrorAlert(for: transfer.device.name, error: error)
|
ErrorAlertHandler.shared.showErrorAlert(for: activeIncomingTransfers[id]?.device.name ?? "Android", error: error)
|
||||||
} else {
|
} else {
|
||||||
let currentCount = transmissionCount()
|
let currentCount = transmissionCount()
|
||||||
if currentCount == 0 {
|
if currentCount == 0 {
|
||||||
|
|||||||
Reference in new issue
Block a user