Fixes dismissing document browser on background thread
This commit is contained in:
parent
eaae38481e
commit
6b494e1113
@ -98,6 +98,7 @@ class ImportController: NSObject
|
|||||||
|
|
||||||
private func finish(with urls: Set<URL>?, errors: [Error])
|
private func finish(with urls: Set<URL>?, errors: [Error])
|
||||||
{
|
{
|
||||||
|
DispatchQueue.main.async {
|
||||||
if let urls = urls
|
if let urls = urls
|
||||||
{
|
{
|
||||||
self.delegate?.importController(self, didImportItemsAt: urls, errors: errors)
|
self.delegate?.importController(self, didImportItemsAt: urls, errors: errors)
|
||||||
@ -111,6 +112,7 @@ class ImportController: NSObject
|
|||||||
|
|
||||||
self.presentingViewController?.importController = nil
|
self.presentingViewController?.importController = nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private func presentDocumentBrowser()
|
private func presentDocumentBrowser()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user