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
View File
@@ -49,6 +49,7 @@ def resetConfigVars():
"""
CONFIG.setLastPath(_TMP_ROOT)
CONFIG.setBackupPath(_TMP_ROOT)
CONFIG.setTextFont(None)
CONFIG._homePath = _TMP_ROOT
CONFIG.guiLocale = "en_GB"
return
+2 -2
View File
@@ -1,5 +1,5 @@
[Meta]
timestamp = 2022-11-11 12:48:18
timestamp = 2023-05-31 10:52:21
[Main]
theme = default
@@ -29,7 +29,7 @@ backuponclose = False
askbeforebackup = True
[Editor]
textfont = None
textfont =
textsize = 12
width = 700
margin = 40
+1 -1
View File
@@ -56,7 +56,7 @@ def testGuiEditor_Init(qtbot, nwGUI, projPath, ipsumText, mockRnd):
assert nwGUI.docEditor._typPadChar == nwUnicode.U_NBSP
# Check that editor handles settings
CONFIG.textFont = None
CONFIG.textFont = ""
CONFIG.doJustify = True
CONFIG.showTabsNSpaces = True
CONFIG.showLineEndings = True