Merge the two methods in the shared class to save editor content
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user