Remove some unused data and variables from the code
This commit is contained in:
@@ -68,7 +68,6 @@ class GuiSessionLog(QDialog):
|
|||||||
self.logData = []
|
self.logData = []
|
||||||
self.filterData = []
|
self.filterData = []
|
||||||
self.timeFilter = 0.0
|
self.timeFilter = 0.0
|
||||||
self.timeTotal = 0.0
|
|
||||||
self.wordOffset = 0
|
self.wordOffset = 0
|
||||||
|
|
||||||
self.setWindowTitle("Session Log")
|
self.setWindowTitle("Session Log")
|
||||||
@@ -395,6 +394,7 @@ class GuiSessionLog(QDialog):
|
|||||||
|
|
||||||
ttNovel = 0
|
ttNovel = 0
|
||||||
ttNotes = 0
|
ttNotes = 0
|
||||||
|
ttTime = 0
|
||||||
|
|
||||||
try:
|
try:
|
||||||
logFile = path.join(self.theProject.projMeta, nwFiles.SESS_STATS)
|
logFile = path.join(self.theProject.projMeta, nwFiles.SESS_STATS)
|
||||||
@@ -421,7 +421,7 @@ class GuiSessionLog(QDialog):
|
|||||||
|
|
||||||
tDiff = dEnd - dStart
|
tDiff = dEnd - dStart
|
||||||
sDiff = tDiff.total_seconds()
|
sDiff = tDiff.total_seconds()
|
||||||
self.timeTotal += sDiff
|
ttTime += sDiff
|
||||||
|
|
||||||
wcNovel = int(inData[4])
|
wcNovel = int(inData[4])
|
||||||
wcNotes = int(inData[5])
|
wcNotes = int(inData[5])
|
||||||
@@ -436,7 +436,7 @@ class GuiSessionLog(QDialog):
|
|||||||
)
|
)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
self.labelTotal.setText(self._formatTime(self.timeTotal))
|
self.labelTotal.setText(self._formatTime(ttTime))
|
||||||
self.novelWords.setText("{:n}".format(ttNovel))
|
self.novelWords.setText("{:n}".format(ttNovel))
|
||||||
self.notesWords.setText("{:n}".format(ttNotes))
|
self.notesWords.setText("{:n}".format(ttNotes))
|
||||||
self.totalWords.setText("{:n}".format(ttNovel + ttNotes))
|
self.totalWords.setText("{:n}".format(ttNovel + ttNotes))
|
||||||
@@ -522,9 +522,7 @@ class GuiSessionLog(QDialog):
|
|||||||
newItem = QTreeWidgetItem()
|
newItem = QTreeWidgetItem()
|
||||||
newItem.setText(self.C_TIME, sStart)
|
newItem.setText(self.C_TIME, sStart)
|
||||||
newItem.setText(self.C_LENGTH, self._formatTime(sDiff))
|
newItem.setText(self.C_LENGTH, self._formatTime(sDiff))
|
||||||
newItem.setData(self.C_LENGTH, Qt.UserRole, sDiff)
|
|
||||||
newItem.setText(self.C_COUNT, "{:n}".format(nWords))
|
newItem.setText(self.C_COUNT, "{:n}".format(nWords))
|
||||||
newItem.setData(self.C_COUNT, Qt.UserRole, nWords)
|
|
||||||
|
|
||||||
if nWords > 0 and listMax > 0:
|
if nWords > 0 and listMax > 0:
|
||||||
theBar = self.barImage.scaled(
|
theBar = self.barImage.scaled(
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
<?xml version='1.0' encoding='utf-8'?>
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
<novelWriterXML appVersion="0.10.0-rc1" hexVersion="0x001000c1" fileVersion="1.1" timeStamp="2020-06-25 21:09:22">
|
<novelWriterXML appVersion="0.10.0rc1" hexVersion="0x001000c1" fileVersion="1.1" timeStamp="2020-06-26 18:21:55">
|
||||||
<project>
|
<project>
|
||||||
<name>Sample Project</name>
|
<name>Sample Project</name>
|
||||||
<title>Sample Project</title>
|
<title>Sample Project</title>
|
||||||
<author>Jane Smith</author>
|
<author>Jane Smith</author>
|
||||||
<author>Jay Doh</author>
|
<author>Jay Doh</author>
|
||||||
<saveCount>565</saveCount>
|
<saveCount>583</saveCount>
|
||||||
<autoCount>99</autoCount>
|
<autoCount>102</autoCount>
|
||||||
<editTime>23298</editTime>
|
<editTime>24189</editTime>
|
||||||
</project>
|
</project>
|
||||||
<settings>
|
<settings>
|
||||||
<doBackup>False</doBackup>
|
<doBackup>False</doBackup>
|
||||||
|
|||||||
Reference in New Issue
Block a user