diff --git a/app/lib/widget/dir_picker.dart b/app/lib/widget/dir_picker.dart index 1788141d..ff8b31a4 100644 --- a/app/lib/widget/dir_picker.dart +++ b/app/lib/widget/dir_picker.dart @@ -342,7 +342,7 @@ class DirPickerState extends State { _log.fine( "[_pickedAllExclude] Unpicking '${item.file.path}' and picking children"); final products = []; - for (final i in item.children ?? []) { + for (final i in item.children ?? []) { if (file_util.isOrUnderDir(exclude.file, i.file)) { // [i] is a parent of exclude products.addAll(_pickedAllExclude(item: i, exclude: exclude)); @@ -358,7 +358,7 @@ class DirPickerState extends State { if (path == parent.file.path) { return parent; } - for (final c in parent.children ?? []) { + for (final c in parent.children ?? []) { if (path == c.file.path || path.startsWith("${c.file.path}/")) { return _findChildItemByPath(c, path); }