Some minor tweaks to the session log filter logic

This commit is contained in:
Veronica K. B. Olsen
2020-06-27 17:00:41 +02:00
parent 91b2e1e57e
commit e6a8488e08
2 changed files with 10 additions and 9 deletions
+6 -5
View File
@@ -497,16 +497,17 @@ class GuiSessionLog(QDialog):
wcTotal += wcNotes wcTotal += wcNotes
dwTotal = wcTotal - pcTotal dwTotal = wcTotal - pcTotal
if isFirst:
# Subtract the offset from the first list entry
dwTotal -= self.wordOffset
dwTotal = max(dwTotal, 0) # But don't go negative
isFirst = False
if hideZeros and dwTotal == 0: if hideZeros and dwTotal == 0:
continue continue
if hideNegative and dwTotal < 0: if hideNegative and dwTotal < 0:
continue continue
if isFirst:
# Subtract the offset from the first list entry
dwTotal -= self.wordOffset
isFirst = False
if groupByDay: if groupByDay:
sStart = dStart.strftime(nwConst.dStampFmt) sStart = dStart.strftime(nwConst.dStampFmt)
else: else:
+4 -4
View File
@@ -1,13 +1,13 @@
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<novelWriterXML appVersion="0.10.0rc1" hexVersion="0x001000c1" fileVersion="1.1" timeStamp="2020-06-26 19:29:32"> <novelWriterXML appVersion="0.10.0rc1" hexVersion="0x001000c1" fileVersion="1.1" timeStamp="2020-06-27 17:00:02">
<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>589</saveCount> <saveCount>591</saveCount>
<autoCount>102</autoCount> <autoCount>103</autoCount>
<editTime>24247</editTime> <editTime>24557</editTime>
</project> </project>
<settings> <settings>
<doBackup>False</doBackup> <doBackup>False</doBackup>