Use the new item checker functions instead of equal operator

This commit is contained in:
Veronica Berglyd Olsen committed 2022-09-11 17:22:46 +02:00
1 parent 5cba10151a
commit 73b8e3e0fb
8 files changed
+23 -24

No files matched your search

+2 -2
View File
@@ -784,11 +784,11 @@ class GuiBuildNovel(QDialog):
if not (theItem.isExported or ignoreFlag):
return False
isNone = theItem.itemType != nwItemType.FILE
isNone = not theItem.isFileType()
isNone |= theItem.itemLayout == nwItemLayout.NO_LAYOUT
isNone |= theItem.isInactive()
isNone |= theItem.itemParent is None
isNote = theItem.itemLayout == nwItemLayout.NOTE
isNote = theItem.isNoteLayout()
isNovel = not isNone and not isNote
if isNone: