浏览代码

call stopIo() before imex() (startIo() is already called when imex() ends, see addProgressAlertListener()

B. Petersen 4 年之前
父节点
当前提交
8a9ae4c2f9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      deltachat-ios/Controller/SettingsController.swift

+ 1 - 0
deltachat-ios/Controller/SettingsController.swift

@@ -412,6 +412,7 @@ internal final class SettingsViewController: UITableViewController, ProgressAler
         if !documents.isEmpty {
         if !documents.isEmpty {
             showProgressAlert(title: String.localized("imex_progress_title_desktop"), dcContext: dcContext)
             showProgressAlert(title: String.localized("imex_progress_title_desktop"), dcContext: dcContext)
             DispatchQueue.main.async {
             DispatchQueue.main.async {
+                self.dcContext.stopIo()
                 self.dcContext.imex(what: what, directory: documents[0])
                 self.dcContext.imex(what: what, directory: documents[0])
             }
             }
         } else {
         } else {