Skip to content

Commit

Permalink
Reload the current editor on export.
Browse files Browse the repository at this point in the history
  • Loading branch information
twstokes committed Jul 6, 2022
1 parent dd7b104 commit b699ec6
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 b699ec6

Please sign in to comment.