Simplify how the project tree is populated
This commit is contained in:
@@ -161,7 +161,7 @@ def testDlgProjSettings_StatusImport(qtbot, monkeypatch, nwGUI, projPath, mockRn
|
||||
project.tree[hCharNote].setImport(C.iMajor) # type: ignore
|
||||
project.tree[hWorldNote].setImport(C.iMain) # type: ignore
|
||||
|
||||
nwGUI.rebuildTrees()
|
||||
nwGUI.projView.populateTree()
|
||||
project.countStatus()
|
||||
|
||||
assert [e.count for _, e in project.data.itemStatus.iterItems()] == [2, 0, 2, 1]
|
||||
|
||||
+1
-1
@@ -197,7 +197,7 @@ def buildTestProject(obj: object, projPath: Path) -> None:
|
||||
project._valid = True
|
||||
|
||||
if nwGUI is not None:
|
||||
nwGUI.rebuildTrees()
|
||||
nwGUI.projView.populateTree()
|
||||
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user