Reset meta data for folders
This commit is contained in:
@@ -244,6 +244,12 @@ class NWItem():
|
|||||||
self._root = self._handle # Root items are their own ancestor
|
self._root = self._handle # Root items are their own ancestor
|
||||||
self._parent = None # Root items cannot have a parent
|
self._parent = None # Root items cannot have a parent
|
||||||
|
|
||||||
|
if self._type != nwItemType.FILE:
|
||||||
|
self._charCount = 0 # Only set for files
|
||||||
|
self._wordCount = 0 # Only set for files
|
||||||
|
self._paraCount = 0 # Only set for files
|
||||||
|
self._cursorPos = 0 # Only set for files
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user