Added timestamp to project tree, and made some class variables internal in various classes
This commit is contained in:
+2
-5
@@ -179,11 +179,8 @@ class GuiOutline(QTreeWidget):
|
||||
|
||||
# If the novel index has changed since the tree was last built,
|
||||
# we rebuild the tree from the updated index.
|
||||
lastChange = self.theParent.theIndex.timeNovel
|
||||
logger.verbose("Last outline build: %.3f" % self.lastBuild)
|
||||
logger.verbose("Novel index change: %.3f" % lastChange)
|
||||
|
||||
doBuild = lastChange > self.lastBuild and self.theProject.autoOutline
|
||||
idxChanged = self.theParent.theIndex.novelChangedSince(self.lastBuild)
|
||||
doBuild = idxChanged and self.theProject.autoOutline
|
||||
if doBuild or overRide:
|
||||
logger.debug("Rebuilding Project Outline")
|
||||
self._populateTree()
|
||||
|
||||
Reference in New Issue
Block a user