mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-18 20:36:04 +00:00
Fix error message on share extension disappearing too quickly
This commit is contained in:
1 parent
28178a7e6a
commit
f6588c3c43
2 files changed
+17
-5
No files matched your search
@@ -228,8 +228,13 @@ class ShareViewController: NSViewController, OutboundAppDelegate {
|
||||
progressProgressBar?.doubleValue = 0
|
||||
lastError = error
|
||||
|
||||
ErrorAlertHandler.shared.showErrorAlert(for: chosenDevice?.name ?? "", error: error, isQuickDropPeer: chosenDevice?.isQuickDropPeer ?? false)
|
||||
self.extensionContext!.cancelRequest(withError: error)
|
||||
ErrorAlertHandler.shared.showErrorAlert(
|
||||
for: chosenDevice?.name ?? "",
|
||||
error: error,
|
||||
isQuickDropPeer: chosenDevice?.isQuickDropPeer ?? false
|
||||
) { [weak self] in
|
||||
self?.extensionContext?.cancelRequest(withError: error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user