Move all code to set default text font into the Config class
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user