Skip to content

Commit

Permalink
Merge pull request #141 from tumblr/fix/reload-current-editor
Browse files Browse the repository at this point in the history
MultiEditorViewController: Reload the current editor during export process
  • Loading branch information
twstokes authored Jul 6, 2022
2 parents dd7b104 + b699ec6 commit 9dbb644
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Classes/Editor/MultiEditor/MultiEditorViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,14 @@ extension MultiEditorViewController: EditorControllerDelegate {
editor.export { [weak self, editor] result in
let _ = editor // strong reference until the export completes
self?.exportHandler.handleExport(result, for: idx)
if let selected = self?.selected {
self?.loadEditor(for: selected, current: false)
}
}
}
})

if let selected = self.selected {
loadEditor(for: selected, current: true)
}

return false
}

Expand Down

0 comments on commit 9dbb644

Please sign in to comment.