From b699ec6210c903c86bd47bdf7c511711c42bf8dc Mon Sep 17 00:00:00 2001 From: "Tanner W. Stokes" Date: Thu, 30 Jun 2022 10:23:18 -0400 Subject: [PATCH] Reload the current editor on export. --- .../Editor/MultiEditor/MultiEditorViewController.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Classes/Editor/MultiEditor/MultiEditorViewController.swift b/Classes/Editor/MultiEditor/MultiEditorViewController.swift index a6731b19b..57c0f6b0c 100644 --- a/Classes/Editor/MultiEditor/MultiEditorViewController.swift +++ b/Classes/Editor/MultiEditor/MultiEditorViewController.swift @@ -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 }