Possibility to send bug report if connection fails

This commit is contained in:
Leon Böttger committed 2025-05-03 19:34:12 +02:00
1 parent 81a7ee06af
commit 8f8d46f7aa
20 files changed
+79 -34

No files matched your search

+10 -2
View File
@@ -322,9 +322,17 @@ class AppDelegate: NSObject, NSApplicationDelegate, UNUserNotificationCenterDele
alert.messageText = String(format: NSLocalizedString("TransferError", value: "Failed to receive files from %@", comment: ""), arguments: [transfer.device.name])
alert.informativeText = description
alert.addButton(withTitle: "TypeNotSupportedButton".localized())
let _ = alert.runModal()
alert.addButton(withTitle: "InformDeveloper".localized())
alert.addButton(withTitle: "CloseAlert".localized())
log("Showing alert with message: \(alert.messageText) and description: \(alert.informativeText)")
let result = alert.runModal()
if result == .alertFirstButtonReturn {
sendLoggingString()
}
}
else {
let currentCount = transmissionCount()