Added viewSyopsis option to config, and added both viewComments and viewSynopsis to Preferences

This commit is contained in:
Veronica K. B. Olsen
2020-06-13 22:58:26 +02:00
parent b6e7220495
commit 3321b744d5
2 changed files with 30 additions and 6 deletions
+5 -5
View File
@@ -141,6 +141,7 @@ class Config:
## State
self.showRefPanel = True
self.viewComments = True
self.viewSynopsis = True
# Check Qt5 Versions
verQt = splitVersionNumber(QT_VERSION_STR)
@@ -478,6 +479,9 @@ class Config:
self.viewComments = self._parseLine(
cnfParse, cnfSec, "viewcomments", self.CNF_BOOL, self.viewComments
)
self.viewSynopsis = self._parseLine(
cnfParse, cnfSec, "viewsynopsis", self.CNF_BOOL, self.viewSynopsis
)
## Path
cnfSec = "Path"
@@ -569,6 +573,7 @@ class Config:
cnfParse.add_section(cnfSec)
cnfParse.set(cnfSec,"showrefpanel",str(self.showRefPanel))
cnfParse.set(cnfSec,"viewcomments",str(self.viewComments))
cnfParse.set(cnfSec,"viewsynopsis",str(self.viewSynopsis))
## Path
cnfSec = "Path"
@@ -753,11 +758,6 @@ class Config:
self.confChanged = True
return self.showRefPanel
def setViewComments(self, checkState):
self.viewComments = checkState
self.confChanged = True
return self.viewComments
def getErrData(self):
errMessage = "<br>".join(self.errData)
self.hasError = False