Merge the two methods in the shared class to save editor content

This commit is contained in:
Veronica Berglyd Olsen
2024-06-16 15:23:22 +02:00
parent e9e7fae40e
commit 7c33c949cb
5 changed files with 16 additions and 23 deletions
+1 -1
View File
@@ -327,7 +327,7 @@ class GuiManuscriptBuild(NDialog):
return False
# Make sure editor content is saved before we start
SHARED.saveDocument()
SHARED.saveEditor()
docBuild = NWBuildDocument(SHARED.project, self._build)
docBuild.queueAll()
+1 -1
View File
@@ -325,7 +325,7 @@ class GuiManuscript(NToolDialog):
start = time()
# Make sure editor content is saved before we start
SHARED.ensureEditorSaved(None)
SHARED.saveEditor()
docBuild = NWBuildDocument(SHARED.project, build)
docBuild.queueAll()