Fix build ODT language, and collapsing of view panel (#1087)

This commit is contained in:
Veronica Berglyd Olsen
2022-06-15 17:10:35 +02:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ class GuiMain(QMainWindow):
self.splitMain.setCollapsible(self.idxTree, False) self.splitMain.setCollapsible(self.idxTree, False)
self.splitMain.setCollapsible(self.idxMain, False) self.splitMain.setCollapsible(self.idxMain, False)
self.splitDocs.setCollapsible(self.idxEditor, False) self.splitDocs.setCollapsible(self.idxEditor, False)
self.splitDocs.setCollapsible(self.idxViewer, True) self.splitDocs.setCollapsible(self.idxViewer, False)
self.splitView.setCollapsible(self.idxViewDoc, False) self.splitView.setCollapsible(self.idxViewDoc, False)
self.splitView.setCollapsible(self.idxViewMeta, False) self.splitView.setCollapsible(self.idxViewMeta, False)
+2
View File
@@ -659,6 +659,7 @@ class GuiBuildNovel(QDialog):
fmtUnnumbered = self.fmtUnnumbered.text() fmtUnnumbered = self.fmtUnnumbered.text()
fmtScene = self.fmtScene.text() fmtScene = self.fmtScene.text()
fmtSection = self.fmtSection.text() fmtSection = self.fmtSection.text()
buildLang = self.buildLang.currentData()
hideScene = self.hideScene.isChecked() hideScene = self.hideScene.isChecked()
hideSection = self.hideSection.isChecked() hideSection = self.hideSection.isChecked()
textFont = self.textFont.text() textFont = self.textFont.text()
@@ -706,6 +707,7 @@ class GuiBuildNovel(QDialog):
if isOdt: if isOdt:
bldObj.setColourHeaders(not noStyling) bldObj.setColourHeaders(not noStyling)
bldObj.setLanguage(buildLang)
bldObj.initDocument() bldObj.initDocument()
# Make sure the project and document is up to date # Make sure the project and document is up to date