Make sure the project translation map is loaded correctly

This commit is contained in:
Veronica K. B. Olsen committed 2021-02-16 22:42:18 +01:00
1 parent 4699d9404b
commit 8aa2401134
2 files changed
+19 -9

No files matched your search

+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.",