Make sure the project translation map is loaded correctly

This commit is contained in:
Veronica K. B. Olsen
2021-02-16 22:42:18 +01:00
parent 4699d9404b
commit 8aa2401134
2 changed files with 19 additions and 9 deletions
+4
View File
@@ -89,6 +89,7 @@ class GuiPreferences(PagedDialog):
logger.debug("Saving new preferences")
needsRestart = self.tabGeneral.saveValues()
prevSpell = self.mainConf.spellLanguage
self.tabProjects.saveValues()
self.tabDocs.saveValues()
@@ -96,6 +97,9 @@ class GuiPreferences(PagedDialog):
self.tabSyntax.saveValues()
self.tabAuto.saveValues()
if prevSpell != self.mainConf.spellLanguage:
self.theProject.loadProjectLocalisation(self.mainConf.spellLanguage)
if needsRestart:
self.theParent.makeAlert(
"Some changes will not be applied until novelWriter has been restarted.",