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 Jun 30, 2022
1 parent 4d715e0 commit c6c78b7
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 c6c78b7

Please sign in to comment.