mirror of
https://github.com/leonboe1/QuickDrop.git
synced 2026-11-23 06:46:03 +00:00
Fix log sending from share extension
This commit is contained in:
1 parent
935bdc5a65
commit
8e78f58b5e
1 file changed
+7
-1
@@ -102,7 +102,13 @@ class ErrorAlertHandler {
|
|||||||
self.isAlertShown = false
|
self.isAlertShown = false
|
||||||
|
|
||||||
if result == .alertFirstButtonReturn {
|
if result == .alertFirstButtonReturn {
|
||||||
LogExportPresenter.showUploadLogsAlert(openSupportMailAfterUpload: false)
|
if Bundle.main.bundlePath.hasSuffix(".appex") {
|
||||||
|
if let url = URL(string: "quickdrop://sendLog") {
|
||||||
|
NSWorkspace.shared.open(url)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
LogExportPresenter.showUploadLogsAlert(openSupportMailAfterUpload: false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
showAlert(title: title, message: description)
|
showAlert(title: title, message: description)
|
||||||
|
|||||||
Reference in new issue
Block a user