Remember last used author name
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[Meta]
|
||||
timestamp = 2025-02-22 19:57:47
|
||||
timestamp = 2025-05-11 13:28:11
|
||||
|
||||
[Main]
|
||||
font =
|
||||
@@ -31,6 +31,7 @@ backuppath =
|
||||
backuponclose = False
|
||||
askbeforebackup = True
|
||||
askbeforeexit = True
|
||||
lastauthor =
|
||||
|
||||
[Editor]
|
||||
textfont =
|
||||
|
||||
@@ -242,6 +242,11 @@ def testBaseConfig_Methods(fncPath):
|
||||
# Recent Projects
|
||||
assert isinstance(tstConf.recentProjects, RecentProjects)
|
||||
|
||||
# Last Author
|
||||
assert CONFIG.lastAuthor == ""
|
||||
CONFIG.setLastAuthor(" Jane Doe ")
|
||||
assert CONFIG.lastAuthor == "Jane Doe"
|
||||
|
||||
|
||||
@pytest.mark.base
|
||||
def testBaseConfig_SettersGetters(fncPath):
|
||||
|
||||
Reference in New Issue
Block a user