Move all code to set default text font into the Config class

This commit is contained in:
Veronica Berglyd Olsen
2023-05-31 17:49:31 +02:00
parent 74f46f4633
commit 704fffada3
13 changed files with 62 additions and 63 deletions
+1 -2
View File
@@ -613,8 +613,7 @@ class GuiPreferencesDocuments(QWidget):
"""Save the values set for this tab.
"""
# Text Style
CONFIG.textFont = self.textFont.text()
CONFIG.textSize = self.textSize.value()
CONFIG.setTextFont(self.textFont.text(), self.textSize.value())
# Text Flow
CONFIG.textWidth = self.textWidth.value()