diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 3048f29b..291d8d33 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -38,21 +38,9 @@ jobs: # In this mode, `mainSourceFile` is excluded and `version (unittest)` are included # See https://dub.pm/package-format-json.html#configurations dub test - cd examples/bezier - dub build -b=release - cd ../dminer - dub build -b=release - cd ../dmledit - dub build -b=release - cd ../dragon - dub build -b=release - cd ../example1 + cd examples/example1 dub build -b=release cd ../helloworld dub build -b=release - cd ../ircclient - dub build -b=release cd ../opengl - dub build -b=release - cd ../tetris dub build -b=release \ No newline at end of file diff --git a/.gitignore b/.gitignore index 324d8ef3..2639617e 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,4 @@ lib/res *.lst *.a dlangui-test-default +.vscode diff --git a/src/dlangui/widgets/tree.d b/src/dlangui/widgets/tree.d index 66b1d8ea..5c2abb86 100644 --- a/src/dlangui/widgets/tree.d +++ b/src/dlangui/widgets/tree.d @@ -268,6 +268,10 @@ class TreeItem { return this; } + /// Support foreach + int opApply(int delegate(ref TreeItem) callback) { + return _children.opApply(callback); + } /// returns true if item has at least one child @property bool hasChildren() { return childCount > 0; }