Improved the export filter to exclude trash and orphan files always

This commit is contained in:
Veronica K. B. Olsen
2019-10-31 11:34:36 +01:00
parent 1263f4d12e
commit 2dd546b395
4 changed files with 50 additions and 26 deletions
+1 -10
View File
@@ -35,16 +35,7 @@ class ConcatFile(TextFile):
logger.verbose("Parsing content of item '%s'" % tHandle)
theItem = self.theProject.getItem(tHandle)
isNone = theItem.itemLayout == nwItemLayout.NO_LAYOUT
isNote = theItem.itemLayout == nwItemLayout.NOTE
isNovel = not isNone and not isNote
if isNone:
return False
if isNote and not self.expNotes:
return False
if isNovel and not self.expNovel:
if not self.checkInclude(tHandle):
return False
self.theConv.setText(tHandle)