mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-24 23:36:05 +00:00
Possibility to send bug report if connection fails
This commit is contained in:
1 parent
81a7ee06af
commit
8f8d46f7aa
20 files changed
+79
-34
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user