Use the new item checker functions instead of equal operator

This commit is contained in:
Veronica Berglyd Olsen
2022-09-11 17:22:46 +02:00
parent 5cba10151a
commit 73b8e3e0fb
8 changed files with 23 additions and 24 deletions
+2 -2
View File
@@ -221,7 +221,7 @@ class NWIndex:
if theItem is None:
logger.info("Not indexing unknown item '%s'", tHandle)
return False
if theItem.itemType != nwItemType.FILE:
if not theItem.isFileType():
logger.info("Not indexing non-file item '%s'", tHandle)
return False
@@ -792,7 +792,7 @@ class ItemIndex:
for tItem in self.theProject.tree:
if tItem is None:
continue
if tItem.itemLayout == nwItemLayout.NOTE:
if tItem.isNoteLayout():
continue
if skipExcl and not tItem.isExported:
continue