mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 06:59:21 +01:00
Fix dirs deeper than 2 lvs are optimized out
This commit is contained in:
parent
a37697f7be
commit
16285bf0f6
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,9 @@ mixin DirPickerMixin<T extends StatefulWidget> on State<T> {
|
||||||
/// Fill query results from bloc to our item tree
|
/// Fill query results from bloc to our item tree
|
||||||
bool _fillResult(LsDirBlocItem root, LsDirBlocSuccess state) {
|
bool _fillResult(LsDirBlocItem root, LsDirBlocSuccess state) {
|
||||||
if (root.file.path == state.root.path) {
|
if (root.file.path == state.root.path) {
|
||||||
root.children = state.items;
|
if (root.children?.isNotEmpty != true) {
|
||||||
|
root.children = state.items;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else if (state.root.path.startsWith(root.file.path)) {
|
} else if (state.root.path.startsWith(root.file.path)) {
|
||||||
for (final child in root.children ?? <LsDirBlocItem>[]) {
|
for (final child in root.children ?? <LsDirBlocItem>[]) {
|
||||||
|
|
Loading…
Reference in a new issue